Why rhis works on foxpro and dont o active page

Feb 3, 2012 at 2:43 AM

On foxpro comand window i type

mario = 'maçao'

? STRTRAN 

(mario,'ç','ç')
 
 
 

 

Then I get

maçao  On fox pro screen that is the expected result

 Then I wrote a quick avfp page with this code

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head>

</head>

<

body>

<%='ma'+'&ccedil;'+'ao'%>

&ccedil;<br>

<%mario = 'maçao'

STRTRAN(mario,'ç','&ccedil;') %>

<%=mario %>

<br>

Code page

<%=CPCURRENT()%><br>
 

</

body>

</

html>
 

 

And I get the folowing web page ( source )



<html xmlns

="http://www.w3.org/1999/xhtml">

<

head

>

</

head

>

<

body

>

 

 

 

 

 

 

ma&ccedil;ao &ccedil;<br>

maçao<br

>

 

 

Code page 1252<br>

</body

>

</html

>



What is wrong ?