Re: BText and Unicode-encoded characters
Richard Kunze <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Organization | Tivano Software GmbH |
| Message-ID | <[email protected]> |
On Tuesday 11 February 2003 16:39, Timo H Jarvinen wrote:
> Thanks, Christian. Here's an example:
>
> In Java class:
> BText btext = new BText();
> btext.setAllowMarkupInText(true);
> btext.setText("\u03a3\u03c5\u03bd\u03ac\u03b8\u03c1\u03bf\u03b9\u03c3\u03b7
>");
>
> a) Character output:
> ??????????
>
> b) Should be:
> Συνάθροιση
The culprit is probably "allowMarkupInText(true)". If Barracuda uses the XMLC
CDATA hack to realize this (and I think it does), then the text of the
component is rendered as is (that's the purpose of the CDATA hack). This
means (among other things) that XMLC will not generate HTML escape sequences
for characters that are not supported by the character set used for output,
and the Java stream output code will replace these characters by "?".
With "allowMarkupInText(false)", everything should work fine.
Hope this helps,
Richard
--
Richard Kunze
[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, [email protected]
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+SSU/86Aqb3OZfF4RAqGkAJsGTBpaM10c9dpMK906kmD0kjKE3gCdHTip UZrY/ycmdkcFrsjFIonM+sE= =UWlK -----END PGP SIGNATURE-----