I made some test with this very very simple program (just one statement): test-char.lua print("aaa", "èèè", "ùùù", "zzz") (these are four strings, the 2 and 3 onea are strings made of 3 accented "e" and 3 accented "u") I used wxLua on Windows XP, with italian settings. I created the file with an external editor; every character was simply coded with one ascii byte.
1) calling "wxLua.exe test-char.lua" resulted in a print message where only the first and last string were printed: aaa, , , zzz the inner special strings were simply ignored. 2) I then tried to load "wxluaedit.exe" and from there I loaded the same file. The file was fully loaded and I could see the special characters When I tried to run the program everything was fine. The accented letters were correctly displayed on the output window! So, I tried to load the program I was working to (wxDateCalc.lua) Everything was ok. Running from wxstedit gave no problems. 3) After that, I tried to load wxLua.exe alone, to get the default editor. This time, when I tried to load the same file "test-chars.lua" the program went wrong. It just wasn't able to do it. 4) I tried to type a new program, with the same content (print("aaa", "èèè", "ùùù", "zzz")) When typing, the special characters were displayed correctly. Running the program was ok, too. I had my chars shown! -> the solution of the mistery was in the file structure: - In wxstedit (or an external editor) the special characters were saved in a one byte format - In wxLua, on the contrary, a two byte format is used to code characters over 127 Mario Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users