I really need help to understand and sort out my problem with "foreign" characters. Please read this if you now something about this.
I have made some webscripts in php which some translators use. It is some forms which posts to a script which insert the text into a MySQL database 4.1.11 on windows with UTF8 standard.
After insertion I use a VB.Net program which selects (using MySQL provider with charset=UTF8 in the connection) the "sentences/words". When selected I use the XMLTextWriter to write the content to a file using encoding UTF8.
My program, which was needed to be translated, use this language file by reading it in with UTF8 encoding.
Here comes some questions and what I don't understand.
1. Can I display the strings right into a label for example or do I have to convert the UTF8 into the codepage of the language?
I have tried different approaches: converting, using different fonts etc. I don't know if the error lies in the database, the files, or in my program showing the strings. I have examples for you, a russian and a japanese file:
2. Please tell me if these files look ok and is usable r the error is in the files.
I have succeded with swedish characters when I converted UTF8 to codepage 1252 which swedish belongs to. On the other hand is my whole OS and National Settings in swedish so I don't know if that way is successful.
Please give me all your ideas and forgive me if this text is long! Thanks again! / Henrik
--- neteject.com - Internet Solutions ---
I have made some webscripts in php which some translators use. It is some forms which posts to a script which insert the text into a MySQL database 4.1.11 on windows with UTF8 standard.
After insertion I use a VB.Net program which selects (using MySQL provider with charset=UTF8 in the connection) the "sentences/words". When selected I use the XMLTextWriter to write the content to a file using encoding UTF8.
My program, which was needed to be translated, use this language file by reading it in with UTF8 encoding.
Here comes some questions and what I don't understand.
1. Can I display the strings right into a label for example or do I have to convert the UTF8 into the codepage of the language?
I have tried different approaches: converting, using different fonts etc. I don't know if the error lies in the database, the files, or in my program showing the strings. I have examples for you, a russian and a japanese file:
2. Please tell me if these files look ok and is usable r the error is in the files.
I have succeded with swedish characters when I converted UTF8 to codepage 1252 which swedish belongs to. On the other hand is my whole OS and National Settings in swedish so I don't know if that way is successful.
Please give me all your ideas and forgive me if this text is long! Thanks again! / Henrik
--- neteject.com - Internet Solutions ---