Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Euro €  Parsing Problem with 9ias

Posted on 2004-10-21
12
Medium Priority
?
328 Views
Last Modified: 2013-12-01
Hi all,
I'm having a problem with an XML parsing. I'm taking an incoming mail and using java stored in the DB i get hold of an XML attachment to an email an begin parsing it with oracle.

The problem is that when the XML file contains a euro symbol, the parser crashes. I  have isolated it as being the euro € symbol, as when it is removed, the XML file is parsed perfectly. Below is the v$nls_parameters table for the database i'm using.

NLS_LANGUAGE                        ENGLISH

NLS_TERRITORY                        IRELAND

NLS_CURRENCY                        $

NLS_ISO_CURRENCY                  IRELAND

NLS_NUMERIC_CHARACTERS            .,

NLS_CALENDAR                        GREGORIAN

NLS_DATE_FORMAT                  DD-MON-RR

NLS_DATE_LANGUAGE                  ENGLISH

NLS_CHARACTERSET                  WE8MSWIN1252

NLS_SORT                              BINARY

NLS_TIME_FORMAT                        HH12:MI:SSXFF AM

NLS_TIMESTAMP_FORMAT                  DD-MON-RR HH24:MI:SSXFF

NLS_TIME_TZ_FORMAT                  HH12:MI:SSXFF AM TZR

NLS_TIMESTAMP_TZ_FORMAT            DD-MON-RR HH24:MI:SSXFF TZR

NLS_DUAL_CURRENCY                  €

NLS_NCHAR_CHARACTERSET            AL16UTF16

NLS_COMP                              BINARY

NLS_LENGTH_SEMANTICS                  BYTE

NLS_NCHAR_CONV_EXCP                  FALSE

Any suggestions would be greatly appreciated, and thanks in advance.
0
Comment
Question by:g00334120
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
12 Comments
 
LVL 13

Expert Comment

by:petmagdy
ID: 12370371
In case of special characters into XML tag values use ! [CDATA like this:

<language-name>
 <![CDATA[€]]>
</language-name>



0
 
LVL 1

Author Comment

by:g00334120
ID: 12370630
Not to reveal my ignorance but could you be a little more specific please, the € symbol is contained in the data between tags, where should i place

<language-name>
 <![CDATA[€]]>
</language-name>

Thanks.
0
 
LVL 13

Expert Comment

by:petmagdy
ID: 12370910
Yes I know u mean data between tags please try it and lets see
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:g00334120
ID: 12399502
No luck petmagdy,
Any other suggestions?
Thanks.
0
 
LVL 13

Expert Comment

by:petmagdy
ID: 12399920
yes instead of € insert &#x20AC
0
 
LVL 1

Author Comment

by:g00334120
ID: 12400287
I'll try that thanks. The laptop that DB is on is currently out of my possession. I'll let you know as soon as get it back.
Thanks.
0
 

Expert Comment

by:radical_mit
ID: 12421773
one other idea ,I had, a problem but with Swiss letters, was to change the NLS_LANG oracle settting to
WE8ISO8859P1

this fixed my äöé problem as well as thje € symbol one. maybe this helps

0
 
LVL 1

Author Comment

by:g00334120
ID: 12421820
Cheers,
I'll give that a try too.
0
 
LVL 1

Author Comment

by:g00334120
ID: 12442782
Sorry for the delay,
Still no luck.
0
 
LVL 13

Expert Comment

by:petmagdy
ID: 12442803
ahhhh you don't get my point i mean to replace the euro sign (€) with the Hexadecimal value (&#x20AC) inside the XML iteself not the v$nls_parameters table
0
 
LVL 1

Author Comment

by:g00334120
ID: 12442824
No, i did that and had no joy. It just complained about more illegal characters. Could it be a problem with the 9i xml parser?
0
 
LVL 13

Accepted Solution

by:
petmagdy earned 1500 total points
ID: 12442869
Ok it seems u need to encode url XML as UTF-16

u still put &#x20AC  or &#8364 in the xml,

see the accepted answer at this thread URL:

http://www.experts-exchange.com/Web/Web_Languages/XML/Q_20302545.html
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question