Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iconv: Illegal byte sequence #13

Open
Xiburse opened this issue Dec 15, 2020 · 10 comments
Open

iconv: Illegal byte sequence #13

Xiburse opened this issue Dec 15, 2020 · 10 comments

Comments

@Xiburse
Copy link

Xiburse commented Dec 15, 2020

I used Google Translate to Chineseize part of the text, and the following error was reported when I packaged it:
ERROR: outm2.txt:17068: iconv: Illegal byte sequence
image
My text content:
image
The encoding format is utf-8.How can I solve it?

@nunuhara
Copy link
Owner

This error means that the program can't convert your text into the character encoding of the .ain file (because it contains unsupported characters).

Alicesoft's game engine uses the Shift-JIS character encoding internally, and Shift-JIS doesn't support Chinese text. I've heard that it's possible to edit the .exe file so that it uses a different encoding (e.g. GB2312 for Chinese) but I'm not sure how to do it myself. Apparently there is a tutorial on the net somewhere.

If you do manage to get a modified .exe, the alice ain edit command has a --transcode option that will convert the .ain file to a different encoding. But you will need a modified .exe in order to run such a file.

@Xiburse
Copy link
Author

Xiburse commented Dec 25, 2020

OK, I will find a way to change the exe, thank you

@2021year
Copy link

2021year commented Jan 7, 2021

@Xiburse 兄弟,可以大概讲讲怎么修改exe的enconding么?

@Xiburse
Copy link
Author

Xiburse commented Jan 8, 2021

@Xiburse 兄弟,可以大概讲讲怎么修改exe的enconding么?

好像是需要a社官方的游戏制作工具来修改,最近没有整了,我也不是很清楚

@MishaIac
Copy link

MishaIac commented Feb 3, 2021

image

@MishaIac
Copy link

MishaIac commented Feb 3, 2021

You may also need to edit the fonts if they do not have Chinese characters

@ckbenzster
Copy link

How to build modified.exe for another language ?

@LazySano
Copy link

I managed to modify the exe but how do I use the command alice ain edit --transcode

@LazySano
Copy link

ERROR: Failed to open ain file: Unrecognized or invalid AIN format

@LazySano
Copy link

WARNING(../subprojects/libsys4/src/ain.c:ain_init_member_functions:166): Failed to find struct type for function "ظ�أo┘╛Q╞ْA╞ْظ�╣╞ْt╞ْ@ظ�آl┌»┘�ظ�آ├ذ"
WARNING(../subprojects/libsys4/src/ain.c:ain_init_member_functions:166): Failed to find struct type for function "ظ�أo┘╛Q╞ْA╞ْظ�╣╞ْt╞ْ@ظ�آl┌ء┘êظ�£┬╛"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants