Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-13-2007
lifejoy lifejoy is offline
Registered User
 
Name: lifejoy
Organization: klmt
Project: 1919&secondplat
 
Join Date: Nov 2005
Posts: 6
UTF-8 Encoding Error

I try to encoder some text from localcharset to utf-8.
I use to libiconv to convert it.
The result is ok!
But Ice for CSharp don't accept it!
Follow is Content:
================================================== ========
E8 BE 93 E5 85 A5 E9 94 99 E8 AF AF 2C E5 AE A2
E6 9C 8D 30 32 35 38 34 37 32 37 32 32 33 2E E7
89 B9 E5 88 AB E6 8E A8 E8 8D 90 E5 8F 91 43 46
E5 88 B0 31 39 31 39 E6 9C 88 E5 BA A6 E8 AF 9D
E8 B4 B9 E6 9F A5 0D 0A E8 AF A2 2C E5 8F 91 48
46 E5 88 B0 31 39 31 39 E5 B9 B4 E5 BA A6 E8 AF
9D E8 B4 B9 E6 9F A5 E8 AF A2 2C E5 8F 91 4D 52
48 4C E5 88 B0 31 39 31 39 E6 AF 8F E6 97 A5 E9
BB 84 E5 8E 86 2C
================================================== ========
__________________
dongpinglei
china kunlun mobile tech.
lifejoy@163.com
project :1919plat,www.1919.com.cn
Reply With Quote
  #2 (permalink)  
Old 04-13-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Before we can help you, please update your user profile (Name, Organization, Project).

Also, you should provide the bug report so that we can reproduce the problem without having to enter hex codes.
Reply With Quote
  #3 (permalink)  
Old 04-13-2007
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 813
The best would be to attach a little test program that shows the problem (maybe you can just modify one of the Ice demos).

Also, if you want to check that your C++ std::string is properly encoded using UTF-8 (before sending it through Ice), you can use IceUtil::isLegalUTF8Sequence (included through Ice/IceUtil.h, declared in IceUtil/Unicode.h).

Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ICE client encoding GBK error tangxiaoshu Help Center 9 12-25-2006 03:17 AM
Encoding Problem about Chinese, client compiled by Java, server compiled by C++ richardma Help Center 6 12-21-2005 12:00 AM
encoding error when Ice java client get string from Ice c++ server casper Help Center 1 09-16-2005 04:01 AM
Q on Data encoding ChMeessen Comments 3 01-28-2005 10:19 AM
IceSSL encoding nsns Bug Reports 4 01-26-2005 05:03 AM


All times are GMT -4. The time now is 08:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.