Problem with email has been fixed. The default options in IC for body and
header encoding of SMTP messages were conflicting with the conversion made
by A4D in creating the output message. Works fine now.

Regarding the issue with javascript:

1. no encoding problem with extended characters when using A4D to output
database information to browser except for the Euros sign that never
displays correctly.

2. problems still exists when going through javascript :
The A4D method is in a library. The method creates inline javascript in the
html output file which is sent to the browser. When looking to the source of
the page, extended characters are encoded :

<script type='text/javascript'>
Addresses1 = new Array(
new Array(
null,
null
),
new Array(
null,
"12 avenue Jeancourt Galignani",
"12 r&eacute;sidence du Golf"
),
new Array(
null,
"14 rue de Varenne"
)
);
</script>

When the javascript function populates the form fields with these value, the
address field displays "12 r&eacute;sidence du Golf"

Regards,
-- 
Robert Ernens
[EMAIL PROTECTED]

> De�: Aparajita Fishman <[EMAIL PROTECTED]>
> R�pondre �: Active4D Developer Discussion List
> <[EMAIL PROTECTED]>
> Date�: Wed, 16 Jul 2003 09:36:16 -0400
> ��: Active4D Developer Discussion List <[EMAIL PROTECTED]>
> Objet�: Re: [Active4d-dev]  A4D, 4D, Javascript, Mail messages charset
> conversions
> 
>> I have recently been trying to use A4D to dynamically generate
>> javascript
>> arrays used by a javascript procedure to change select lists content
>> based
>> on some other select list value (i.e. List of phone numbers for the
>> selected
>> individual).
>> 
>> While the process works just fine, I have faced charset conversion
>> issues
>> when values contain international characters such as characters with
>> accent.
>> 
>> I have tried all combinations of "charset" and encoding and have not
>> been
>> successful. The values won't display properly on the web page.
> 
> This is strange. If the text is coming from the database (which is in
> the Mac Roman character set), and is being output to ISO-Latin1 (the
> default), the conversion should happen automatically without any
> problems.
> 
> For example, I tried changing the text for a field in my demo database
> to "L'h�tel �tait ferm�" and it displayed perfectly in the browser.
> 
> Is your data coming from the database? What happens if you display the
> data directly instead of using Javascript to display it?
> 
> Regards,
> 
>   Aparajita
>   Victory-Heart Productions
>   [EMAIL PROTECTED]
>   www.aparajitaworld.com
> 
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoylibrary.com
> 
> 

Reply via email to