Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Chinese characters not converting correctly to EncodingANSI when system Locale is set to Chinese

$
0
0

Hi

We have a PB application(PB 12.5 Build 4953/ backend - Informix database) with multi language support. We use Tuxedo servers for communicating between the PB Client and the Informix DB. The alternate language information entered on the client is first converted to Ansi format using combination of Blob function and String function prior to sending it to the Tuxedo C servers. likewise prior to displaying the data on the client, it is first converted to EncodingUTF8! again using the same functions. The application works fine if the System Locale setting is English. We have Windows 7.0.

 

We are noticing a problem when the System locale is changed to (Chinese, Simplified PRC). The String function no longer converts the Blob information into EncodingANSI.

 

--**Code snippet - The below conversion is done prior to sending the information to the Tuxedo C server.

 

//  - start of encoding of core data - it may contain UTF8 characters

blob lblb_encode

// Store result text in blob with EncodingUTF8!

lblb_encode = Blob(az_output_string, EncodingUTF8!)

// Store blob text back into result with EncodingANSI!

az_output_string = String(lblb_encode, EncodingANSI!)

 

Need to find a way to get around this issue. Having the System Locale set to English is not an option for the users in China.

 

Thanks for the Help.

Susan.


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>