load textfile with special characters (äöü)

Discussion in 'Questions (Windows Mobile)' started by bob, Nov 19, 2007.

  1. bob

    bob Member Licensed User

    hi,

    I searched the forum, but unfortunately didn't find a solution for this.

    I have to import a textfile (written with notepad) that contains German characters (Umlaute like ä,ö,ü). No matter how I try to read the text, either with

    FileOpen(f1,"deutsch.txt",cread) or
    FileOpen(f1,"deutsch.txt",cread,,cascii)

    deutsch.txt contains
    ...
    Kugeln/Aufnahme
    Höchstes Break
    ...

    I always get an empty box or a question mark (with cascii) instead of the character 'ö'. Is there a possibility to define a codepage prior to the import or is any other solution for this?

    tia!!
    Robert
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Load your file with Notepad.
    Choose Save As - Encoding - UTF8.

    Now load it with:

    FileOpen(f1,"deutsch.txt",cread)
     
  3. bob

    bob Member Licensed User

    unbelievable.... a (working) answer in a couple of minutes

    thanks so much!

    a completely pleased customer
    robert
     
Loading...