You are here

the PAL does not support Chinese??

5 posts / 0 new
Last post
porpsmhoo
Offline
Last seen: 10 years 10 months ago
Joined: 2013-06-15 11:33
the PAL does not support Chinese??

I am a novice of portableapps,i have a question that puzzled me some days. when I make a software named BaiduReaderLite for portable,I found that portableappsLauncher not have a good support for chinese language,I said that in more detail below,look:

At the Launcher.ini below [RegistryValueWrite] I write this:

HKLM\SOFTWARE\Classes\BaiduReaderLite.pdf\shell\用百度阅读器精简版打开\command\=REG_SZ:%PAL:AppDir%\BaiduReaderLite\BaiduReaderLite.exe "%1"

when run the portableapp,I found that it is not exist in the regedit, but a similar section
succeed write in the regedit,this is a instance:

HKLM\SOFTWARE\Classes\BaiduReaderLite.pdf\shell\open with BaiduReaderLite\command\=REG_SZ:%PAL:AppDir%\BaiduReaderLite\BaiduReaderLite.exe "%1"

Now I want to know that is it I write wrong, or the PAL does not support Chinese??

excuse my poor english.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
INI Format

I'd guess you have the INI saved as either ANSI or UTF8, neither of which will work properly with the Windows INI APIs and Unicode characters like Chinese (either Traditional or Simplified). Open up your BaiduReaderLitePortable.ini file in Notepad++ and click the Encoding menu and then select Convert to UCS-2 Little Endian.

Note that this will not work with all parts of PAL as a couple functions do not properly support Unicode characters.

Sometimes, the impossible can become possible, if you're awesome!

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Which don't work?

Which parts of PAL don't work with full Unicode? I can't think of any off the top of my head, but I haven't touched it in quite a while.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Non-API

The parts that didn't use the Windows API and parsed through all the entries in a given section, iirc. Those bits were NSIS specific (possibly the Enumerate Sections plugin) and weren't Unicode friendly. At least that's what I remember.

Sometimes, the impossible can become possible, if you're awesome!

porpsmhoo
Offline
Last seen: 10 years 10 months ago
Joined: 2013-06-15 11:33
I think you're wrong

I think you are wrong,when I transformed the coding from ANSI to unicode(UTF-16LE),but the PAL executed failure.It's seemingly that PAl not read the BaiduReaderLitePortable.ini,and I couldn't found nothing in the regedit that the BaiduReaderLitePortable.ini defined.I have no idea for this,it's Looking at you.Here is the the address for the BaiduReaderLitePortable I make,and I updata it to the Baidu Network location:
http://pan.baidu.com/share/link?shareid=2001277638&uk=2218246939

Log in or register to post comments