Hello

I am a little bit confused.
With this example the character äöü are ok, but the –  or en dash  or – 
or key [alt -] are not ok.
The browser sends  cont=%E4%96
And in A4D_GetHttpBodyCallback the blob has the same value.

On Active4D 4.5 and 4D 2004 all was OK.
Now in Active4D 5 and 4D11 I have a problem with en dash.

When write to the response buffer it's ok ("–")
But if a save this value to database or write it to the Active4D console, the 
character has a total wrong value.


<%
//$encoding:="utf-8"
$encoding:="iso-8859-1"
//$encoding:="macintosh"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
        <meta http-equiv="content-type" content="text/html; 
charset=<%=$encoding%>" />
        <title>Untitled</title>
</head>
<body>
<%
a4d.debug.dump collection(_form)
write to console(_form{"cont"})
writebr(_form{"cont"})
%>

<form action="postForm.gos" method="post">
        <textarea name="cont" rows="10" cols="20">&auml;&ndash;</textarea>
        <br />
        <button type="submit" name="sende" value="sende">senden</button>
</form>
</body>
</html>
%>


4D v11.5 and Active4D 5.0r7

Thanks for any tip.

Regards, Oliver
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to