RE: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Olivier Lange dijo: >> On 18.04.2004 09:45, Upayavira wrote: >> >> > But my question is: "I have a file that contains entity references. I >> > want to replace it with direct characters, e.g. in UTF-8. How do I do >> > this?" That is, this question really has nothing to do with Cocoon >> > specific

RE: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Olivier Lange
> On 18.04.2004 09:45, Upayavira wrote: > > > But my question is: "I have a file that contains entity references. I > > want to replace it with direct characters, e.g. in UTF-8. How do I do > > this?" That is, this question really has nothing to do with Cocoon > > specifically. I want to change the

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Upayavira dijo: > Antonio Gallardo wrote: > >>Hi: >> >>The Joerg answer is OK. >>I just added some additional info about the topic. >> >> > Thanks for this Antonio. It all helps to make me a slightly less > ignorant Englishman ;-) > > But my question is: "I have a file that contains entity referenc

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Joerg Heinicke dijo: >> In that way we must to use: >> >> >> alert('Á'); >> > > No, this is wrong. You have all the characters now double escaped. Try > to view this in your browser: you will definitely don't get back the > expected Á. The original "alert('Á');" was correct

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Upayavira dijo: > Antonio Gallardo wrote: > >>Hi: >> >>The Joerg answer is OK. >>I just added some additional info about the topic. >> >> > Thanks for this Antonio. It all helps to make me a slightly less > ignorant Englishman ;-) > > But my question is: "I have a file that contains entity referenc

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Joerg Heinicke
On 18.04.2004 10:53, Antonio Gallardo wrote: The problem is when I want to generate text which will be showed in javascript alert. When it contains entity representation of the characters, text in the message box is escaped and the entity representation is showed. At least in the IE. The point is,

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Joerg Heinicke dijo: > On 18.04.2004 08:44, Antonio Gallardo wrote: > >> You can avoid the &#xxx; using UTF-8. UTF-8 allow you to write the >> representation of the char directly in the file. For example in Spanish: >> >> I really don't know the &#xxx; syntax for the following chars: >> >> á, ñ, Ñ,

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Joerg Heinicke dijo: > On 18.04.2004 10:17, Jaroslav Kuruc wrote: > The problem is when I want to generate text which will be showed in javascript alert. When it contains entity representation of the characters, text in the message box is escaped and the entity representation is

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Joerg Heinicke
On 18.04.2004 09:45, Upayavira wrote: But my question is: "I have a file that contains entity references. I want to replace it with direct characters, e.g. in UTF-8. How do I do this?" That is, this question really has nothing to do with Cocoon specifically. I want to change the format of my so

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Joerg Heinicke
On 18.04.2004 08:44, Antonio Gallardo wrote: You can avoid the &#xxx; using UTF-8. UTF-8 allow you to write the representation of the char directly in the file. For example in Spanish: I really don't know the &#xxx; syntax for the following chars: á, ñ, Ñ, é, ö, ü, etc. This should also work when

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Joerg Heinicke
On 18.04.2004 07:32, Upayavira wrote: 1) I have some polish text that uses character entities, such as "się" How can I translate this into a single or double byte character in either ISO-8859-1, ISO-8859-2 or UTF-8? They are not translated. While you have the entity representation in the XML fi

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Joerg Heinicke
On 18.04.2004 10:17, Jaroslav Kuruc wrote: The problem is when I want to generate text which will be showed in javascript alert. When it contains entity representation of the characters, text in the message box is escaped and the entity representation is showed. At least in the IE. The point is, b

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Jaroslav Kuruc dijo: > The point is, browser doesn't understand entities in JS. Try this: > > > > > alert('Á'); > > > OK. I thought you was using javascript in special .js files. But this is normal. XML does include the HTML entities as Á and similars. Instead try the numeric represe

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Jaroslav Kuruc
Antonio Gallardo wrote: Jaroslav Kuruc dijo: The problem is when I want to generate text which will be showed in javascript alert. When it contains entity representation of the characters, text in the message box is escaped and the entity representation is showed. At least in the IE. Servus Bla

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Upayavira
Antonio Gallardo wrote: Hi: The Joerg answer is OK. I just added some additional info about the topic. Thanks for this Antonio. It all helps to make me a slightly less ignorant Englishman ;-) But my question is: "I have a file that contains entity references. I want to replace it with direc

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Antonio Gallardo
Jaroslav Kuruc dijo: > The problem is when I want to generate text which will be showed in > javascript alert. When it contains entity representation of the > characters, text in the message box is escaped and the entity > representation is showed. At least in the IE. Servus Blava ;-) Currently,

Re: [i18n] Replacing entities with encoded chars

2004-04-18 Thread Jaroslav Kuruc
Joerg Heinicke wrote: On 17.04.2004 22:33, Upayavira wrote: A few I18N questions: 1) I have some polish text that uses character entities, such as "się" How can I translate this into a single or double byte character in either ISO-8859-1, ISO-8859-2 or UTF-8? They are not translated. While yo

Re: [i18n] Replacing entities with encoded chars

2004-04-17 Thread Antonio Gallardo
Upayavira dijo: > So UTF-8 is a good encoding to use, it sounds like. So, if I have > multiple languages, it is best to aim for UTF-8 as a source encoding, > and serialize to that. Not only multiples languages, even if I am targeting just English is a good idea to use UTF-8. The world is moving th

Re: [i18n] Replacing entities with encoded chars

2004-04-17 Thread Antonio Gallardo
Hi: The Joerg answer is OK. I just added some additional info about the topic. Joerg Heinicke dijo: > On 17.04.2004 22:33, Upayavira wrote: > >> A few I18N questions: >> >> 1) I have some polish text that uses character entities, such as >> "się" How can I translate this into a single or double b

Re: [i18n] Replacing entities with encoded chars

2004-04-17 Thread Upayavira
Joerg Heinicke wrote: On 17.04.2004 22:33, Upayavira wrote: A few I18N questions: 1) I have some polish text that uses character entities, such as "się" How can I translate this into a single or double byte character in either ISO-8859-1, ISO-8859-2 or UTF-8? They are not translated. While y

Re: [i18n] Replacing entities with encoded chars

2004-04-17 Thread Joerg Heinicke
On 17.04.2004 22:33, Upayavira wrote: A few I18N questions: 1) I have some polish text that uses character entities, such as "się" How can I translate this into a single or double byte character in either ISO-8859-1, ISO-8859-2 or UTF-8? They are not translated. While you have the entity repres

[i18n] Replacing entities with encoded chars

2004-04-17 Thread Upayavira
A few I18N questions: 1) I have some polish text that uses character entities, such as "się" How can I translate this into a single or double byte character in either ISO-8859-1, ISO-8859-2 or UTF-8? 2) I can set the encoding of a page in the serialiser configuration. How do I deal with the sit