ID: K18172
Version(s):
Updated: 19/04/2010
Product Group: .NET
Product: Installation
"
When I convert my project using the project converter, I see the "File encoding not specified and it contains non ASCII characters" error message. I see that some files are not converted. What should I do to convert the remaining files?"
Its a major problem in the project converter for non english projects. Even a comment with a special character ill make de converter to alert. áéíóúýçãõàèìòùäëïöüÿ are pretty common examples of characters in french, portuguese, italian, spanish (and german) languages. Its not pratical to convert houndreds (in a bunch of thousands)(.aspx) files one-by-one.
Hi Klayton,
I apologize, I do not quite understand your idea. Would you like the ProjectConverter to convert these files? As that KB article explains, we cannot detect the encoding used to write a certain file and conversion may corrupt its contents. We think that possible data loss/corruption is a strong argument to avoid conversion. Therefore, ProjectConcerter skips these files and warns you. If you open these files in VS and save them with appropriate attributes, as suggested, the problem should completely disappear.
Regards,
Serge
I'm sorry u dont understand I'll not open and save 447 files one-by-one.
Whatever. I wrote a small program to change my files encoding. After the change the ProjectConverter managed to work properly.
I suggest devXpress to work more in the ProjectConverter and manage to fix the small issues, at least for the most common cenarios.
Hi Klayton,
We are happy to hear that you have designed an automated solution and we thank you for posting it here. Undoubtedly, this information will be helpful to other programmers who may encounter similar problems. At the same time, I want to repeat that processing files without a BOM/encoding set is error-prone and may corrupt the file contents. From the other side, we think that adjusting file encoding goes outside the list of a ProjectConverter's tasks. Therefore, we will unlikely change the ProjectConverter in this way. However, if you do not mind, I can refer the Why is the "File encoding not specified and it contains non ASCII characters" error message shown, when I convert my project using the ProjectConverter tool? KB article to this ticket so that other users may utilize your tool.
Regards,
Serge
Hi Serge,
Fell free to refer this ticket and use my "tool", consider it open source.
;p
Hi Klayton,
Thank you for the confirmation, I appreciate your collaboration greatly!
We will add references to this thread in the corresponding knowledgebase article: Why is the "File encoding not specified and it contains non ASCII characters" error message shown, when I convert my project using the ProjectConverter tool?
Thanks,
Stan