besoft Active Member Licensed User Longtime User May 11, 2016 #1 Hello, I have ini file from which I read some information. The data type is string. When I displays the information on the form, the data is not correctly written, certain characters can not be seen or are altered. How can I translate/encode the strings from UTF-8 strings on Windows-1252 strings? Can this be done for the entire application? Is there a general setting? Code: Public MSG_5 As String MSG_5 = INI_LNG.rdString("MSG", "MSG_5")
Hello, I have ini file from which I read some information. The data type is string. When I displays the information on the form, the data is not correctly written, certain characters can not be seen or are altered. How can I translate/encode the strings from UTF-8 strings on Windows-1252 strings? Can this be done for the entire application? Is there a general setting? Code: Public MSG_5 As String MSG_5 = INI_LNG.rdString("MSG", "MSG_5")
Erel B4X founder Staff member Licensed User Longtime User May 11, 2016 #2 Few questions: How was the INI file created? Why didn't you use UTF8? Why do you use an INI file at all? Why not use a simple File.ReadMap / WriteMap or if a more powerful solution needed use KVS store? You can read files with other encoding with TextReader. Upvote 0
Few questions: How was the INI file created? Why didn't you use UTF8? Why do you use an INI file at all? Why not use a simple File.ReadMap / WriteMap or if a more powerful solution needed use KVS store? You can read files with other encoding with TextReader.
besoft Active Member Licensed User Longtime User May 11, 2016 #3 Thanks for the reply. I used the library db2000.B4J.INI that is easy to use. Why do I use this method? The application is designed with multi-language support. All buttons, label, ... have been translated into several languages. I already solved the problem so that I file saved as UTF-8. The solution was found in the forum. Is there a better way to work with multilingual support? Thx Upvote 0
Thanks for the reply. I used the library db2000.B4J.INI that is easy to use. Why do I use this method? The application is designed with multi-language support. All buttons, label, ... have been translated into several languages. I already solved the problem so that I file saved as UTF-8. The solution was found in the forum. Is there a better way to work with multilingual support? Thx