Re: [PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
I found soimething here that i did not know.

I am using Smarty e it changes all ccedil; to ç in whole page.

I am trying to found where it does the change but it has been very hard.


Nuno Vaz Oliveira [EMAIL PROTECTED] escreveu na mensagem 
news:[EMAIL PROTECTED]
Hi

I'm working on a site and I'm using the same encoding you
use and everything displays ok both in Firefox 1.5/2.0
and IE 6.

The only difference is that I have the ISO in small letters
and the tag terminator like this:

meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /

I can display João, Mão, Mãe, õ, and everything else
(todos os acentos e caracteres portugueses)

So, I think that the problem is not in the code because I
only use the meta and never use the header...

Hope this helps...

(Se precisares de alguma coisa em Português diz...
Mas sou novato no PHP) 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
A point that i think is importanto to say is.

The page which i just have ? echo joão; ? without using smarty works 
fine in any browser, the trouble is when the page is compiled by smarty.

Nuno Vaz Oliveira [EMAIL PROTECTED] escreveu na mensagem 
news:[EMAIL PROTECTED]
Hi

I'm working on a site and I'm using the same encoding you
use and everything displays ok both in Firefox 1.5/2.0
and IE 6.

The only difference is that I have the ISO in small letters
and the tag terminator like this:

meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /

I can display João, Mão, Mãe, õ, and everything else
(todos os acentos e caracteres portugueses)

So, I think that the problem is not in the code because I
only use the meta and never use the header...

Hope this helps...

(Se precisares de alguma coisa em Português diz...
Mas sou novato no PHP) 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
I found the trouble...

Who change it is Dreamweaver.

When i save my .tpl file it converts ccedil; to ç.

Anyone know how can i change it in dreamweaver?


João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na 
mensagem news:[EMAIL PROTECTED]
I am facing a trouble in my system in which i am not able to show 
ISO-8859-1 encoding data. When i tried to use the follow meta tag it works 
in firefox but still not working in IE.

 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1

 In firefox it shows: REMÉDIO PARA O GADO

 In IE it shows: REM?IOS PARA O GADO

 Could someone help me?

 Thanks in advance.

 -- 
 João Cândido de Souza Neto
 Curitiba Online
 [EMAIL PROTECTED]
 (41) 3324-2294 (41) 9985-6894
 http://www.curitibaonline.com.br 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
I found how to fix it in dreamweaver.

You just must change the file:

C:\Arquivos de programas\Macromedia\Dreamweaver 
MX\Configuration\DocumentTypes/MMDocumentTypes.xml

Change the follow line adding tpl extension and it will works fine:

documenttype id=HTML internaltype=HTML 
winfileextension=htm,html,tpl,shtml,shtm,stm,lasso,xhtml 
macfileextension=html,htm,tpl,shtml,shtm,lasso,xhtml file=Default.html 
writebyteordermark=false

Thanks for everytips.


João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na 
mensagem news:[EMAIL PROTECTED]
I am facing a trouble in my system in which i am not able to show 
ISO-8859-1 encoding data. When i tried to use the follow meta tag it works 
in firefox but still not working in IE.

 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1

 In firefox it shows: REMÉDIO PARA O GADO

 In IE it shows: REM?IOS PARA O GADO

 Could someone help me?

 Thanks in advance.

 -- 
 João Cândido de Souza Neto
 Curitiba Online
 [EMAIL PROTECTED]
 (41) 3324-2294 (41) 9985-6894
 http://www.curitibaonline.com.br 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Encoding

2006-11-22 Thread Jo�o C�ndido de Souza Neto
After put this subject here i saw that it has been done by smarty.

I tried to create the follow page:

 echo João; ?

And it works fine. Anyone here know about encoding in smarty?

João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na 
mensagem news:[EMAIL PROTECTED]
I am facing a trouble in my system in which i am not able to show 
ISO-8859-1 encoding data. When i tried to use the follow meta tag it works 
in firefox but still not working in IE.

 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1

 In firefox it shows: REMÉDIO PARA O GADO

 In IE it shows: REM?IOS PARA O GADO

 Could someone help me?

 Thanks in advance.

 -- 
 João Cândido de Souza Neto
 Curitiba Online
 [EMAIL PROTECTED]
 (41) 3324-2294 (41) 9985-6894
 http://www.curitibaonline.com.br 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Encoding

2006-11-22 Thread Nuno Vaz Oliveira
Hi

I'm working on a site and I'm using the same encoding you
use and everything displays ok both in Firefox 1.5/2.0
and IE 6.

The only difference is that I have the ISO in small letters
and the tag terminator like this:

meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /

I can display João, Mão, Mãe, õ, and everything else
(todos os acentos e caracteres portugueses)

So, I think that the problem is not in the code because I
only use the meta and never use the header...

Hope this helps...

(Se precisares de alguma coisa em Português diz...
Mas sou novato no PHP)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Encoding PC-850

2006-11-03 Thread Nisse Engström
On Mon, 30 Oct 2006 16:21:58 +0100, [EMAIL PROTECTED] wrote:

 I need to be able to encode text to PC-850 but I have big trouble
 finding out info about this encoding. Does it even exist? I get a few
 google hits, but nothing useful. Any idea of how I can convert for
 example an UTF-8 string or an ISO-8859-1 to this PC-850 format? 

Microsoft's cp850:

  http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP850.TXT

IBM's cp850 differs from the above in 3 places:

  http://www.unicode.org/Public/MAPPINGS/VENDORS/IBM/readme.txt


  --nfe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Encoding problem with command line PHP.exe

2002-07-14 Thread Richard Lynch

Hello - My problem is as follows:
?
$data = mssql_result(mssql_query(SELECT Field FROM table WHERE
ID='1'),0);
echo $data;
mysql_insert(INSERT INTO table2 VALUES('$data'));
?

The data in the MSSQL table is: Æã

I dunno what those characters are or what's going on, but this code needs
some serious error-checking...

Perhaps the web version and CGI version are using different php.ini files
with different sql_magic_quotes settings...

--
Like Music?  http://l-i-e.com/artists.htm


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php