UTF-8, command prompt, notepad, batch files

G

Guest

Why can't I save a batch file as UTF-8 and run it? This ends up in error only.

Is there a way to use unicode text-files from command prompt? CMD, even with
/U switch or codepage 65001 (or 850), messes up scandinavian chars. If I run:
echo åäö > text.txt and: type text.txt, chars show as they should, but in the
text-file (using Notepad) they show up as garbage. So, if I want to edit the
file, I have to do it without a text editor (use command prompt?). If I use a
text editor, I have to put up with garbage in the command prompt output.

Antti
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top