Subject: RE: [xsl] I18N / UTF-8 versus US-ASCII From: "Sangal, Amit (STSD)" <amit.sangal@xxxxxx> Date: Tue, 4 Apr 2006 16:33:17 +0530 |
1) If I save the file and open with IE6, I get following message "An invalid character was found in text content" 2) I tried the URL sent by you and this URL do highlight the character used in my test case. 3) I am using xalan and xerces. Following is the code used for transformation. TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource(OVSNAdapterConfiguration.ovsnServiceXSLFile)); String hostName = AdapterUtil.getHostAddress(); transformer.setParameter("sourceName", /* parameter name */ hostName+"/"+dataSourceName /* parameter value */ ); output = new ByteArrayOutputStream(); byte[] bytes = message.getBytes(); transformer.transform(new StreamSource(new ByteArrayInputStream(bytes)), new StreamResult(output)); Do you see any problem with the code which can cause loss of Unicode? Regards, Amit -----Original Message----- From: Alexander Johannesen [mailto:alexander.johannesen@xxxxxxxxx] Sent: Tuesday, April 04, 2006 4:04 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] I18N / UTF-8 versus US-ASCII On 4/4/06, Sangal, Amit (STSD) <amit.sangal@xxxxxx> wrote: > I do have Korean character pack installed on my machine. If you save this file and view it with your favourite browser, what do you get? <html> <head> <title>Korean test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> [퓨터] </body> </html> Also, try http://www.isthisthingon.org/unicode/index.phtml?page=D&subpage=4&hilite =D4E8 which will highlight the character you're interested in the test case. If this is all and well, somewhere in the pipe between XML input and through to the output of your processor the unicode gets lost. What processor and parsers etc are you using? Alex -- "Ultimately, all things are known because you want to believe you know." - Frank Herbert __ http://shelter.nu/ __________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] I18N / UTF-8 versus US-AS, Alexander Johannesen | Thread | Re: [xsl] I18N / UTF-8 versus US-AS, andrew welch |
Re: [xsl] I18N / UTF-8 versus US-AS, Olivier Collioud | Date | Re: [xsl] I18N / UTF-8 versus US-AS, andrew welch |
Month |