|
|
|
|||||
|
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? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |