yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

updates.ini in Japaneses

I use the Auto Updater to update my application. The Auto updater looks at the updates.ini file on the server to decide if to update. If it updates, it will use the value of the description tag to show the user a description.

I have created an update project with AA 8.9
In the description field I types some Japaneses in Kanji.

Image

Run it and created the updates.ini file. The Japaneses text in the updates.ini looks like garbage.

Image

When the auto update shows it, it looks like garbage as well.

Image

Is there a way to put real kanji text in the description portion of the updates.ini file and have it show correctly on the user machine?

Thanks

-Yishai
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: updates.ini in Japaneses

Hi Yishai,

If you need to have multiple languages for your project, the correct approach is to localize the specified strings. Also, please keep in mind that the description for each item is specified on a single row of the field.
Character formatting is supported in all the items as well.

If you don't need multiple languages you can set the language you need as the project language. Too see the correct characters while editing the built file, you'll need to set the editor with the appropriate encoding. Also, the correct characters will be shown only on a native language target machine.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Re: updates.ini in Japaneses

Hi Mihai

Localizing specific string is relevant for the UI but at this point I only care for is the description string that does come form the ini file on the server, circled in red in the image above.

You mention I need to set the editor to the correct encoding, but what is the correct encoding? If the updates.ini file is saved in as a Unicode encoding, the updater fails to recognize it. To be specific:
1. What are the supported character encoding of the updates.ini file? [BTW, if you make the auto updater support also unicode all those problems will just go away]
2. What should be the encoding of the description test? Can it be Unicode escapes? Shift-JIS?
3. Do you have any example of text in the description field that is two byte and will show correctly on a native OS?
4. If the description text is encoded in Shift-JIS and is two byte Kanji text, will it show correctly on a Japaneses native OS?

Thanks

-Yishai
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: updates.ini in Japaneses

Hi Yishai,
You mention I need to set the editor to the correct encoding, but what is the correct encoding?
The editor has to have the encoding of the characters you need to show correctly. In your case, the encoding should be "Shift-JIS".

You can use "Shift-JIS" in the description text providing the project language is also Japanese. It should be shown correctly on a native machine.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”