Administrator
|
Is anyone using the Tamino properties in properties.xml to set up the
URL username and password for Tamino? Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
We do not use them. Doug Doug Young Software Engineer Teleflex IT 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP +44 (0) 1506 407107 -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: 13 January 2006 01:05 To: OPS Users Subject: [ops-users] Tamino: configuration using properties Is anyone using the Tamino properties in properties.xml to set up the URL username and password for Tamino? Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
I think this question is a little bit out of topic, but maybe someone has experiences with this. I'm using a Java Applet to display the data, OPS is serving. If i display the xml data in a browser, the encoding is correct (I need german "Umlaute" like "ä" etc). I decode the data in OPS with UTF-8 and this is, what the browser and even my Java Applet recognize. But if I retrieve the data in java String text = URLDecoder.decode(parser.getText(),"UTF-8"); the Ä's, Ü#s etc a displayed like "ü" for "Ü" and "ö" for "Ä". Somebody know this PRoblem? Sebastian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hello,
I had a thread on a localization problem earlier on this forum. My problem was solved by changing the Base64 encoder algorythm in Orbeon to another one I downloaded form the net. regards, Bal¨¢zs -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi Balazs, thanks for the hint. This could solve it. The good old Base64 class from Robert Harder :-) I forgot totally, that it was used it in our legazy servlet before we used OPS Sebastian
Hello, I had a thread on a localization problem earlier on this forum. My problem was solved by changing the Base64 encoder algorythm in Orbeon to another one I downloaded form the net. regards, Bal¨¢zs -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Sebastian Kraus/INPLUS/DE
Sebastian,
Could you explain in more details the two different paths you are following, i.e. the one that works, and the one that doesn't? I am not sure where the applet is intervening. -Erik Sebastian Kraus/INPLUS/DE wrote: > > I think this question is a little bit out of topic, but maybe someone > has experiences with this. > I'm using a Java Applet to display the data, OPS is serving. > If i display the xml data in a browser, the encoding is correct (I need > german "Umlaute" like "ä" etc). > I decode the data in OPS with UTF-8 and this is, what the browser and > even my Java Applet recognize. > > But if I retrieve the data in java > String text = URLDecoder.decode(parser.getText(),"UTF-8"); > the Ä's, Ü#s etc a displayed like "ü" for "Ü" and "ö" for "Ä". > > Somebody know this PRoblem? > > Sebastian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik, as normal, xml data is reachable over an http url. So I can display the xml in a browser or I can retrieve it wirh my java applet. The applet understands the xml. I call the URl with the org.apache.commons.httpclient.HttpClient library and parse it with an xml pull parser (org.xmlpull.v1.XmlPullParser). When parsing the XML i see, that it is utf-8 encoded, but looking in my java debug console tells me a different story. I did not yet exchanged dthe base64 class. If done I will tell you. Sebastian
Sebastian, Could you explain in more details the two different paths you are following, i.e. the one that works, and the one that doesn't? I am not sure where the applet is intervening. -Erik Sebastian Kraus/INPLUS/DE wrote: > > I think this question is a little bit out of topic, but maybe someone > has experiences with this. > I'm using a Java Applet to display the data, OPS is serving. > If i display the xml data in a browser, the encoding is correct (I need > german "Umlaute" like "ä" etc). > I decode the data in OPS with UTF-8 and this is, what the browser and > even my Java Applet recognize. > > But if I retrieve the data in java > String text = URLDecoder.decode(parser.getText(),"UTF-8"); > the Ä's, Ü#s etc a displayed like "ü" for "Ü" and "ö" for "Ä". > > Somebody know this PRoblem? > > Sebastian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
This should have nothing to do with Base64 if the data simply contains
an XML document with the utf-8 character encoding, right? When you are reading with HttpClient, are you getting a Reader or an InputStream? I assume the parser would just need an InputStream, without further decoding, as the parser is able to directly look at the XML declaration and figure out the encoding to use. -Erik Sebastian Kraus/INPLUS/DE wrote: > > Erik, > > as normal, xml data is reachable over an http url. So I can display the > xml in a browser or I can retrieve it wirh my java applet. > The applet understands the xml. > I call the URl with the org.apache.commons.httpclient.HttpClient library > and parse it with an xml pull parser (org.xmlpull.v1.XmlPullParser). > When parsing the XML i see, that it is utf-8 encoded, but looking in my > java debug console tells me a different story. > > I did not yet exchanged dthe base64 class. If done I will tell you. > > Sebastian > > > *Erik Bruchez <[hidden email]>* > Sent by: Erik Bruchez <[hidden email]> > > 13.01.2006 14:59 > Please respond to > [hidden email] > > > > To > [hidden email] > cc > > Subject > Re: [ops-users] encoding Problem with Java Client > > > > > > > > > Sebastian, > > Could you explain in more details the two different paths you are > following, i.e. the one that works, and the one that doesn't? I am not > sure where the applet is intervening. > > -Erik > > Sebastian Kraus/INPLUS/DE wrote: > > > > I think this question is a little bit out of topic, but maybe someone > > has experiences with this. > > I'm using a Java Applet to display the data, OPS is serving. > > If i display the xml data in a browser, the encoding is correct (I need > > german "Umlaute" like "ä" etc). > > I decode the data in OPS with UTF-8 and this is, what the browser and > > even my Java Applet recognize. > > > > But if I retrieve the data in java > > String text = URLDecoder.decode(parser.getText(),"UTF-8"); > > > the Ä's, Ü#s etc a displayed like "ü" for "Ü" and "ö" for "Ä". > > > > Somebody know this PRoblem? > > > > Sebastian > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Doug Young
OK - thank you Doug. From what I saw in the code I had the suspicion
that the URL, username, and password global configuration will in fact work only for the Tamino query processor. But I guess I will come back to this later as I am right now not setup with a Tamino server running to test this. Alex On 1/13/06, Doug Young <[hidden email]> wrote: > Hi Alex, > We do not use them. > > Doug > > Doug Young > Software Engineer > > Teleflex IT > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > +44 (0) 1506 407107 > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro > Vernet > Sent: 13 January 2006 01:05 > To: OPS Users > Subject: [ops-users] Tamino: configuration using properties > > Is anyone using the Tamino properties in properties.xml to set up the > URL username and password for Tamino? > > Alex > -- > Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by Erik Bruchez
Hi Erik, and again! You are totally right. The strange thing is, that I'm sure I tried an inputStream month ago and the problem was the same. But who knows... I think we can close this thread now Sebastian
This should have nothing to do with Base64 if the data simply contains an XML document with the utf-8 character encoding, right? When you are reading with HttpClient, are you getting a Reader or an InputStream? I assume the parser would just need an InputStream, without further decoding, as the parser is able to directly look at the XML declaration and figure out the encoding to use. -Erik Sebastian Kraus/INPLUS/DE wrote: > > Erik, > > as normal, xml data is reachable over an http url. So I can display the > xml in a browser or I can retrieve it wirh my java applet. > The applet understands the xml. > I call the URl with the org.apache.commons.httpclient.HttpClient library > and parse it with an xml pull parser (org.xmlpull.v1.XmlPullParser). > When parsing the XML i see, that it is utf-8 encoded, but looking in my > java debug console tells me a different story. > > I did not yet exchanged dthe base64 class. If done I will tell you. > > Sebastian > > > *Erik Bruchez <[hidden email]>* > Sent by: Erik Bruchez <[hidden email]> > > 13.01.2006 14:59 > Please respond to > [hidden email] > > > > To > [hidden email] > cc > > Subject > Re: [ops-users] encoding Problem with Java Client > > > > > > > > > Sebastian, > > Could you explain in more details the two different paths you are > following, i.e. the one that works, and the one that doesn't? I am not > sure where the applet is intervening. > > -Erik > > Sebastian Kraus/INPLUS/DE wrote: > > > > I think this question is a little bit out of topic, but maybe someone > > has experiences with this. > > I'm using a Java Applet to display the data, OPS is serving. > > If i display the xml data in a browser, the encoding is correct (I need > > german "Umlaute" like "ä" etc). > > I decode the data in OPS with UTF-8 and this is, what the browser and > > even my Java Applet recognize. > > > > But if I retrieve the data in java > > String text = URLDecoder.decode(parser.getText(),"UTF-8"); > > > the Ä's, Ü#s etc a displayed like "ü" for "Ü" and "ö" for "Ä". > > > > Somebody know this PRoblem? > > > > Sebastian > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |