Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Writing a text file with non-english language

You may need either save it in Unicode (UTF-8) or Western European (ISO-8859-1) coding, just choose the one that suits your unusual character typing needs.

Ruby, OK, RGSS uses $KCODE = "U" by default AFAIK.
 
Iirc, you should be able to do this simply:
Code:
whatever.write("This is a string", "w")
However I have no idea how you actually change encodings by saving from RMVXP... I still suggest you use utf-8, as I had a bunch of problems using different other files in RMVXP... utf-8 works flawlessly (given the required font characters are installed).

As for the ISO code, it's simply a normed way to save a text document as. it's not a number you have to put anywhere, as it's more or less the name.
 
RMXP/VX is using UTF-8, and it cannot be changed. AFAIK KCODE can't be changed.

Anyway, you just need to save your text file as UTF-8 rather than ANSI, in the Save Dialog when editing your textfile with notepad.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top