Encoding with GDL Text Addon

Home Forums Problems and solutions in GDL GDL add-ons Encoding with GDL Text Addon

This topic contains 2 replies, has 2 voices, and was last updated by  Joachim Sühlo 1 month ago.

  • Author
    Posts
  • #4461

    Joachim Sühlo
    Participant

    When I read a text file, that was edited with Open Office and saved as Tab Text CSV,
    I got misrepresentation of German “umlaute” and other special characters,
    when I use TEXT2 command in 2D window.
    Which kind of encoding must I choose for the .txt file to get correct presentations?
    I checked UTF-8 and ISO-8859-1 (using Sublime Text “save with encoding”); both where not correct.

    GDL Object Developer
    b-prisma
    MAC OSx 10.12

  • #4462

    Péter Baksa
    Participant

    Hi Joachim,

    As I remember this has been asked previously, and I couldn’t answer it completely. The solution from the developer:
    “For compatibility it can read both ANSI and UTF8 files. It detects UTF8 from the BOM at the beginning of the file. Make sure you save it with encoding including BOM, otherwise it will be treated as ANSI.”

    I’m sure any programmer’s text editors are capable to do it, I don’t know how to set up OpenOffice to do it.

    Péter Baksa
    Software Engineer, Library Team
    GRAPHISOFT SE

  • #4463

    Joachim Sühlo
    Participant

    Thank You, Péter. That worked well with BOM.

    GDL Object Developer
    b-prisma
    MAC OSx 10.12

You must be logged in to reply to this topic.