S sitajony Active Member Licensed User Jan 10, 2010 #1 Hi everyone, (I'm french) I've some problems when I want write a text with binary module: FileOpen(c1,"data.dat",cRandom) bin.New1(c1,True) bin.WriteString("Test é à ù...") FileClose(c1) and when I want read the content it return: Test ? ? ?... Some Idea about this problem? Thanks everyone!
Hi everyone, (I'm french) I've some problems when I want write a text with binary module: FileOpen(c1,"data.dat",cRandom) bin.New1(c1,True) bin.WriteString("Test é à ù...") FileClose(c1) and when I want read the content it return: Test ? ? ?... Some Idea about this problem? Thanks everyone!
klaus Expert Licensed User Longtime User Jan 10, 2010 #2 You got the answer already here : http://www.b4x.com/forum/french-forum/5299-probleme-dencodage-decriture-besoin-daide.html#post31180 Use bin.New2(c1,1252) instead of bin.New1(c1,True) Best regards.
You got the answer already here : http://www.b4x.com/forum/french-forum/5299-probleme-dencodage-decriture-besoin-daide.html#post31180 Use bin.New2(c1,1252) instead of bin.New1(c1,True) Best regards.
agraham Expert Licensed User Longtime User Jan 10, 2010 #3 It should work OK with Bin.New1(c1, False). UTF-8 is a variable length coding that can represent the entire set of Unicode code points.
It should work OK with Bin.New1(c1, False). UTF-8 is a variable length coding that can represent the entire set of Unicode code points.