GithubHelp home page GithubHelp logo

Comments (5)

felixhageloh avatar felixhageloh commented on August 15, 2024

Did a quick test here and it seems to work fine. Could you share your text file by any chance?

from uebersicht.

MartinAyla avatar MartinAyla commented on August 15, 2024

Thanks for the quick reply, here is the file:
http://cl.ly/text/3E2i3Q0g0z0H/output.txt

I can see that it looks wrong in the browser too, from that link.

But, it looks normal in TextEdit on OS X.

from uebersicht.

felixhageloh avatar felixhageloh commented on August 15, 2024

It looks like an encoding issue with the text file. If I open it in other editors like sublime text or vim, I also get garbled characters. I had no success so far to convert the encoding from TextEdit (I guess this is what you used to create the file?), but I'll keep you posted!

from uebersicht.

felixhageloh avatar felixhageloh commented on August 15, 2024

so, I wasn't able to convert the file, but you can make a new file in TextEdit and copy paste the text from your file. Then go to Format -> Make plain text and when you save make sure that the encoding is set to utf-8

screen shot 2014-10-03 at 14 49 56

That did the trick for me

from uebersicht.

MartinAyla avatar MartinAyla commented on August 15, 2024

Great, thanks a lot Felix!

I saved the document as UTF-8, and when my script writes/updates the file it seems to stay in UTF-8 format now.

I have an AppleScript that does the writing. I added 'as class', hoping that it writes in the correct format :

write output to fileReference as «class utf8»

from uebersicht.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.