Announcement

Collapse
No announcement yet.

Textfile.ReadtoString adds strange chars in front of UTF8 file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Imagine Programming
    replied
    The weird characters you're seeing are the BOM bytes. Read more...

    Leave a comment:


  • Bl4ckSh33p
    replied
    Thanks, it seems to work with ANSI now. But I just loaded the Textfile into a string to use for File.OpenURL to be able to update the link without making a new version of the app. When I used chars like "ä ß ü ö" in the past they were "broken" when not in UTF8 and I could load them without any problems in AMS. But I will try a few things later and see what happens.

    Leave a comment:


  • kingzooly
    replied
    If your changing the string in ams that might be why, you might have to use ulrichs plugin, far as I know AMS does not support UTF8 by default so it depends on if you was making ams change the file, what file is it I can also test in if you like I am on 10.

    if you like make a wee demo and I test it for you.

    Leave a comment:


  • Textfile.ReadtoString adds strange chars in front of UTF8 file

    Hi. In the past I used UTF8 for Textfiles but today I noticed that the action adds strange chars in front of the string which are not shown in notepad or notepad++ on Windows 10.

    Output: "Textfilecontents"

    I downloaded the file with HTTP.Download as type Text and when I change the file to ANSI it seems to work without the strange chars in front. Did this change with Windows 10? I always had to use UTF8 to keep some special chars intact.
Working...
X