You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bh...@wipro.com on 2008/07/07 06:55:31 UTC

FW: Reg :- query in parsing a file when it contains special charcters

Hi
 
If a given file contains field like below 
alarmText = Teħsting Simulator ( a special charcter was some how present in the text).

Now when we parse it using Xerces "alarm Text" field contains NULL value, but it doesn't report any thing that it contains some special characters.

is there handler or way to generate an error when special charcters are present in the text.

With Regards

Bharath. 


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com

Re: FW: Reg :- query in parsing a file when it contains special charcters

Posted by David Bertoni <db...@apache.org>.
bharath.venkata@wipro.com wrote:
> Hi
>  
> If a given file contains field like below
> 
> alarmText = Teħsting Simulator ( a special charcter was some how 
> present in the text).
Does the XML document have the proper encoding declaration?

> 
> Now when we parse it using Xerces "alarm Text" field contains NULL 
> value, but it doesn't report any thing that it contains some special 
> characters.
Can you please provide more information about what your code does?  In 
particular, what do you mean by a "field?"  Are you attempting to 
transcode the data from UTF-16 to the local code page?

> 
> is there handler or way to generate an error when special charcters are 
> present in the text.
If there is an ErrorHandler installed, you will be notified of parsing 
errors.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org