Hi:

Thanks, but problem on this scenario is it will take care of only the trademark symbol. The client can come up with any possible combination for unicode. I guess I'll change the encoding to winansi and try the equivalent code. Having said this, I beleive the problem might stay the same. The string is already there and contains '&#...' text part of it (just like unicode). Parsing might end up very expensive.

Regards,

Shahzad





----Original Message Follows----
From: "David Thielen" <[EMAIL PROTECTED]>
To: "Shahzad Latif" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: Re: [iText-questions] fonts and encoding issue
Date: Thu, 14 Nov 2002 15:12:51 -0700
MIME-Version: 1.0
Received: from mc1-f17.law16.hotmail.com ([65.54.236.24]) by mc1-s10.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 14 Nov 2002 14:14:04 -0800
Received: from usw-sf-list2.sourceforge.net ([216.136.171.252]) by mc1-f17.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 14 Nov 2002 14:14:03 -0800
Received: from usw-sf-list1-b.sourceforge.net ([10.3.1.13] helo=usw-sf-list1.sourceforge.net)by usw-sf-list2.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))id 18CSEa-0007w9-00; Thu, 14 Nov 2002 14:13:12 -0800
Received: from [199.45.247.104] (helo=mail.windward.net)by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))id 18CSEL-0007Hs-00for <[EMAIL PROTECTED]>; Thu, 14 Nov 2002 14:12:58 -0800
Received: from BAMBI [199.45.247.105] by mail.windward.net (SMTPD32-5.05) id AFE437F0144; Thu, 14 Nov 2002 15:12:52 -0700
Message-ID: <0d2601c28c2a$f96dc170$69f72dc7@BAMBI>
References: <[EMAIL PROTECTED]>
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
List-Help: <mailto:itext-questions-request@;lists.sourceforge.net?subject=help>
List-Post: <mailto:itext-questions@;lists.sourceforge.net>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/itext-questions>,<mailto:itext-questions-request@;lists.sourceforge.net?subject=subscribe>
List-Id: Post all your questions about iText here <itext-questions.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/itext-questions>,<mailto:itext-questions-request@;lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=itext-questions>
X-Original-Date: Thu, 14 Nov 2002 15:12:51 -0700
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 14 Nov 2002 22:14:03.0750 (UTC) FILETIME=[24223860:01C28C2B]

parse the string and change the \u2122 into the unicode char.

- dave


----- Original Message -----
From: "Shahzad Latif" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 2:44 PM
Subject: [iText-questions] fonts and encoding issue


> Hi:
>
> Got into an intersting situation:
>
> 1) We are receiving XML data from different sources
> 2) We have created some java classes and loaded them in Oracle.
> 3) The XML data is passed as a parameter to the java sotred procedure that
> creates a PDF
>
> Character encoding in Oracle is WE8ISO8859P1.
>
> Clients have started sending html tags in the XML data for special
> characters like trademark symbol etc. Obviously, it wouldn't work. As a
> remedy, we asked them to start sending us unicode strings (eg., "This is
> Company A\u2122"). Where "\u2122" is the unicode for TM. Obviously, we
> forgot the client was not using java. They have started sending us
literally
> "\u2122". This parameter ends up exactly the same with \+u+2+1+2+2 at the
> end of the line on PDF.
>
> Can someone suggest a workaround or a possible solution.
>
> Thanks,
>
> Shahzad
>
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to