You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run a RMXP game with Chinese title. If I do not compile mkxp with INI_ENCODING, it will throw the error "invalid byte sequence in utf-8" immediately when I start the game. If I compile rmxp with INI_ENCODING, the title can be displayed, but the same error again is thrown when the game's customized script starts reading the ini file:
file = File.open('Game.ini','r')
file.each {|line|
line.gsub!(/\n/,"") #error when reading the line with Chinese title in Game.ini
...
This does not happen with the original RMXP Game.exe.
The text was updated successfully, but these errors were encountered:
Hmm, so the ini file is not UTF-8 but some Chinese encoding, but Ruby in mkxp always expects to be dealing with UTF-8. The RMXP RGSS dll probably has a work-around to deal with Chinese encoded files.
The fix seems easy enough, either convert the ini to UTF-8 with your favorite text editor, or put the ini contents directly into the script instead of having them read from the ini.
I am trying to run a RMXP game with Chinese title. If I do not compile mkxp with INI_ENCODING, it will throw the error "invalid byte sequence in utf-8" immediately when I start the game. If I compile rmxp with INI_ENCODING, the title can be displayed, but the same error again is thrown when the game's customized script starts reading the ini file:
file = File.open('Game.ini','r')
file.each {|line|
line.gsub!(/\n/,"") #error when reading the line with Chinese title in Game.ini
...
This does not happen with the original RMXP Game.exe.
The text was updated successfully, but these errors were encountered: