What is the Script Editor Encoding? - Solved!

Hello, I'm in the process of copying each of the ruby files to an external location (inside of a scripts folder inside of my game), so that I can easily edit them with an IDE.


I'm coming across a snag on several files that are causing problems when the game is loading these files, and these relate to some of the more exotic characters, such as Japanese text characters, the fancy full letters in the Game_Troop class, etc. If I delete or replace these characters, then the game loads fine. However, I want to keep them, for now, to have a complete external file layout of the default scripts. (I'm planning on making a template in my IDE for personal use for any future projects I might do.)


I tried the normal approach to handle character encodings in ruby, and that's to tack on the # encoding UTF-8 at the top of each file and hope for the best. But my best is not good enough.


So I'm asking here to see if anyone knows the encoding used by the Script Editor in VX Ace. If you do, please tell it to me, and future encoding enquirers.
In the helpfile it says this:

Character SetRGSS uses the UTF-8 character set. UTF-8 is a way of encoding Unicode, a character set that can display letters and characters from all the world's languages.

Script data and other text data output by RPG Maker is all UTF-8, but there is normally no need to pay particular attention to the difference between character sets.
I'm wondering if my IDE is encoding these files differently, and that it's causing a problem. When I check the IDE's settings, it claims to save them as UTF-8, but I suppose maybe that it's lying or there's a problem that occurred when copying and pasting the files. I'll try force converting them to UTF-8. If this is indeed the case, then I'll have to solve this problem on my own. Thanks for the manual tidbit, Zalerinian.
I've never heard of anyone else with a problem. What IDE are you using? I'm just using Notepad++ for writing my code and it works perfectly fine.
I'm using RubyMine, which is a pretty good IDE, and it's encodings are supposed to be UTF-8 by default.

My approach is simple, I have a single script:

Code:
require 'scripts/loader'
Loader calls a file which adds to the load path, and then loads some helper files
Code:
# encoding UTF-8$LOAD_PATH << File.dirname(__FILE__)require 'game/basic'......
And these are loading each of the scripts, in order. It works when I remove the encoding, but I'm getting an error that is an invalid multibyte char (US-ASCII) for an error message on loading the Game.exe.
Use UTF-8 Without BOM works for me.
I figured out the solution:


If I properly use this

# encoding: UTF-8instead of this
Code:
# encoding UTF-8
Then Ruby will properly know that I have a UTF-8 file.
Thanks for all your help and concern, though.


Source: http://stackoverflow.com/questions/6444826/ruby-utf-8-file-encoding
And these are loading each of the scripts, in order. It works when I remove the encoding, but I'm getting an error that is an invalid multibyte char (US-ASCII) for an error message on loading the Game.exe. 
Are you compressing the data properly?
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-script-editor-encoding-solved.15895/