L Lasse Member Licensed User May 17, 2007 #1 Hi, I'm trying: FileOpen(c1,"test.txt",cWrite,,cASCII) Filewrite(c1,"ÆØÅ æøå") Filewrite(c1,string) But the file is written with ??? ??? instead. If I have a string with æøå in it, it does not work either. When I load files with the Danish characters into e.g. a table it works fine. Hope someone can help me :sign0163:
Hi, I'm trying: FileOpen(c1,"test.txt",cWrite,,cASCII) Filewrite(c1,"ÆØÅ æøå") Filewrite(c1,string) But the file is written with ??? ??? instead. If I have a string with æøå in it, it does not work either. When I load files with the Danish characters into e.g. a table it works fine. Hope someone can help me :sign0163:
Erel B4X founder Staff member Licensed User Longtime User May 17, 2007 #2 You shouldn't use the cASCII flag (use the default UTF-8): FileOpen(c1,"test.txt",cWrite) Filewrite(c1,"ÆØÅ æøå") Filewrite(c1,string)
You shouldn't use the cASCII flag (use the default UTF-8): FileOpen(c1,"test.txt",cWrite) Filewrite(c1,"ÆØÅ æøå") Filewrite(c1,string)