Re: WebService with iso-8859-1 (probably solved)
Re: WebService with iso-8859-1 (probably solved)
- Subject: Re: WebService with iso-8859-1 (probably solved)
- From: Ute Hoffmann <email@hidden>
- Date: Mon, 9 Feb 2004 16:01:34 +0100
Hi Pierre,
Thank you very much for your answer. I think you are right and the
problem is in the database. I did just change the Adaptor setting for
the app which handles the data input to utf-8 in place of iso latin,
deleted the old data and put in something new. The error disappeared
even though the test-app which handed out the data as webservice had
still the old adaptor setting in its model. What more, the
international characters showed up allright.
I hope this will be the solution and I can go on finishing it now.
Sincerely
Ute
Am Montag, 09.02.04 um 15:15 Uhr schrieb Pierre Frisch:
Hi Ute,
I think you are going in the wrong direction. Java is UTF-8 internally
and the default recommended encoding for WebServices is UTF-8. Can you
explain a bit more what you error is and what you are doing. I am use
WebServices with WO and international characters without problems. Are
There was a long discussion just before new year on the topic of UTF-8
encoding and MySQL. When debugging those issue keep in mind that the
console in Xcode does not always represent correctly UTF-8 characters
(see the discussion). Gino Paciti had a similar configuration to yours
and the problem turned out to be MySQL and not the String encoding
anywhere else. I do not know how he solved it. May be you can use
another databse we use Frontbase very successfully as it is UTF-8
native.
Pierre
On Feb 9, 2004, at 1:52, Ute Hoffmann wrote:
Hi,
I would like to trasfer my webservice contents in iso-latin 1 in place
of unicode to preserve my german umlaute.
1. How can I change the encoding info in the wsdl document to <?xml
version="1.0" encoding="ISO-8859-1"?>? I tried to edit the
.wsdd-files,
but this had no effect on the generated wsdl-file.
2. With utf-8 encoding I get an UTFEncodingException when I invoke
the
webservice when the returned content has special characters in.
There must be a way either to have webservices in WO running and not
using utf-8 as the encodimg or to parse the iso-latin data from the
database correctly to utf-8 via java and parse it back again in the
receiver via java without an exception.
My database is Mysql. The encoding of the database is set to:
capitalizeTypeNames=true&useUnicode=true&characterEncoding=ISO-8859-1
Thanks for some hints.
Regards,
Ute
On Feb 9, 2004, at 2:17, Christian Mittendorf wrote:
On 09.02.2004, at 10:52, Ute Hoffmann wrote:
The encoding of the database is set to:
capitalizeTypeNames=true&useUnicode=true&characterEncoding=ISO-8859-1
One question about using a database connection: From my understanding
all strings retrieved from the db are afterwards in default UTF-8
encoding.
Is this assumption right? Internally, after being retrieved from the
db,
all strings are UTF-8, aren't they?
@Ute: Have you tried to debug your app and watch your strings read
from
the db? Some simple logger.debug() may help. Are those strings perhaps
already in the wrong encoding?
cu
cm
<smime.p7s>
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.