[omniORB] Redhat 9.0 omniORBpy 2.1 and Unicode problems
Scott Robertson
srobertson at codeit.com
Sat Aug 23 16:13:03 BST 2003
Nope I see the same problem using repr(). Results look like this.
'u'Hel\U081c431c\x18''
All I've done is taken the simple echo example and changed the
echoString() function to return a wstring instead of a string, it then
converts whatever string was passed to it to a unicode string and
returns that as its result.
This works without a problem on RedHat 8.0 but Redhat 9.0 gets it wrong
every time.
On Sat, 2003-08-23 at 02:38, Duncan Grisby wrote:
> On Friday 22 August, Scott Robertson wrote:
>
> > Anyone else run into a problem with unicode strings on redhat 9.0? If I
> > make a simple server example that returns a wstring, it will either
> > return the string with non printable data inside it or raise this error:
> >
> > UnicodeError: ASCII encoding error: ordinal not in range(128)
>
> What are you doing when you get that error? Is it when you try to
> print it out? If so, the error is because Python is trying to convert
> the Unicode to ASCII to print it. Try printing repr() of the string.
>
> If that's not it, can you give more details about at what stage the
> error occurs?
>
> Cheers,
>
> Duncan.
More information about the omniORB-list
mailing list