Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-16-2005
casper casper is offline
Registered User
 
 
Join Date: Sep 2005
Posts: 1
Exclamation encoding error when Ice java client get string from Ice c++ server

I use ice java client to get chinese string from Ice c++ server,but it show "?"(0x3f) all. I compile java client with encoding utf-8,error occurs too. But when string is only ascii, it works fine.


Ice Server:
Linux 2.4.30 + gcc 3.3.4 + Ice-2.1.2 + ISO-8859-1

Ice Client1:
Windows Xp home + Jdk 1.5 + IceJ-2.1.2 + GBK
Ice Client2:
Linux 2.4.30 + gcc 3.3.4 + IceJ-2.1.2 + ISO-8859-1
Ice Client3:
Linux 2.4.30 + gcc 3.3.4 + Ice-2.1.2 + ISO-8859-1

slice:
class User {
string Name;//may be chinese string
...
};
interface xx {
User GetUser(int key);
}

Ice Client1: ? ? ?
Ice Client2: ? ? ?
Ice Client3: (is ok,show chinese string)


I guess Ice java client receive a utf-8 stream from server, but evaluate it to a string fail. Have any ideas?
Reply With Quote
  #2 (permalink)  
Old 09-16-2005
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,060
Please note our change in support policy.

Important note: Change in support policy
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
"Invalid UTF8 string" when transer chinese chars between cpp server and csharp client raygo Help Center 8 03-21-2006 09:34 PM
how can i make server send string to client jerry_cym Help Center 2 02-07-2006 05:46 AM
Encoding Problem about Chinese, client compiled by Java, server compiled by C++ richardma Help Center 6 12-21-2005 12:00 AM
An error occurs when c# client send chinese string to c++ server ChaosXu Help Center 4 10-29-2004 08:12 AM


All times are GMT -4. The time now is 10:31 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.