Re: [PHP] Accented character 'echo'ed randomly
John Coppens wrote: Hi people. I submitted the issue below to the bug site, but the people there suggested I present it here. I've tried some more, but until now, I couldn't find any cause for the problem. Any suggestion would be appreciated! John Description: I have a very simple web-page script with mainly 'echo' commands. Randomly the accented characters are replaced by question-marks. If or not the question mark appears seems to be depending on the page contents, though at least in one of the cases, the only thing that changes in the page is a GIF image. All this happens in the same html-session, using the same script. I've seen other -similar- reports, though none about 'echo'. I can't be sure if this is an apache problem or php-related. Sorry if was already solved... Please indicate. Reproduce code: --- echo Página Índice; Expected result: Página Índice Actual result: -- Randomly Página Índice P?gina ?ndice Is the character set indicated on the page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accented character 'echo'ed randomly
On Tue, 05 Apr 2005 09:44:35 +0200 Marek Kilimajer [EMAIL PROTECTED] wrote: John Coppens wrote: Hi people. I submitted the issue below to the bug site, but the people there suggested I present it here. I've tried some more, but until now, I couldn't find any cause for the problem. Any suggestion would be appreciated! John Description: I have a very simple web-page script with mainly 'echo' commands. Randomly the accented characters are replaced by question-marks. If or not the question mark appears seems to be depending on the page contents, though at least in one of the cases, the only thing that changes in the page is a GIF image. All this happens in the same html-session, using the same script. I've seen other -similar- reports, though none about 'echo'. I can't be sure if this is an apache problem or php-related. Sorry if was already solved... Please indicate. Reproduce code: --- echo Página Índice; Expected result: Página Índice Actual result: -- Randomly Página Índice P?gina ?ndice Is the character set indicated on the page? Thanks for the reply, Marek. The page is started with html lang=es, according to rfc3066. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accented character 'echo'ed randomly
John Coppens [EMAIL PROTECTED] wrote in message The page is started with html lang=es, according to rfc3066. John I am not sure this applies to your problem. The language is not the same as the character set. There are several character sets which can represent many European languages, and most European languages share the same character set. Frontpage puts a language meta tag which is just for the purpose of the spellchecker. In a browser it might help a speech synthetizer to use the proper pronuntiation rules. One think I can tell you for sure because I just checked is that Microsoft does not list 'lang' as an atribute for the html tag, so I wouldn't expect Internet Explorer to care about it: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/html.asp?frame=true I think that what you are looking for is to define the character set, as I mentioned in a previous reply. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accented character 'echo'ed randomly
On Tue, 5 Apr 2005 19:14:17 +0200 [EMAIL PROTECTED] (Satyam) wrote: One think I can tell you for sure because I just checked is that Microsoft does not list 'lang' as an atribute for the html tag, so I wouldn't expect Internet Explorer to care about it: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/html.asp?frame=true Ok. MS ignores many standards and norms. I took the information from: http://www.w3.org/International/articles/language-tags/ I think that what you are looking for is to define the character set, as I mentioned in a previous reply. Apparently this is a specific problem with Mozilla. I tried with Firefox, Opera and Dillo, and didn't have any problem. I've traced the HTTP exchange over the 'net, and the HTML code is served correctly. It's the browser that gets confused. I've filed a bug report on bugzilla... Thanks for the replies, and sorry for blaming PHP (not really ;-). John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accented character 'echo'ed randomly
John Coppens [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 5 Apr 2005 19:14:17 +0200 [EMAIL PROTECTED] (Satyam) wrote: One think I can tell you for sure because I just checked is that Microsoft does not list 'lang' as an atribute for the html tag, so I wouldn't expect Internet Explorer to care about it: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/html.asp?frame=true Ok. MS ignores many standards and norms. I took the information from: http://www.w3.org/International/articles/language-tags/ I think that what you are looking for is to define the character set, as I mentioned in a previous reply. Apparently this is a specific problem with Mozilla. I tried with Firefox, Opera and Dillo, and didn't have any problem. I've traced the HTTP exchange over the 'net, and the HTML code is served correctly. It's the browser that gets confused. I like it, you complain about Microsoft ignoring standards, but your problem is with Mozilla, and you still have not told us whether you have tried the most obvious, which is indicating the character set has worked for you. How about just trying? And, by the way, my native language does use many characters with diacritical marks so you might as well take some little advice from someone who has done it before you. I've filed a bug report on bugzilla... Thanks for the replies, and sorry for blaming PHP (not really ;-). John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Accented character 'echo'ed randomly
Hi people. I submitted the issue below to the bug site, but the people there suggested I present it here. I've tried some more, but until now, I couldn't find any cause for the problem. Any suggestion would be appreciated! John Description: I have a very simple web-page script with mainly 'echo' commands. Randomly the accented characters are replaced by question-marks. If or not the question mark appears seems to be depending on the page contents, though at least in one of the cases, the only thing that changes in the page is a GIF image. All this happens in the same html-session, using the same script. I've seen other -similar- reports, though none about 'echo'. I can't be sure if this is an apache problem or php-related. Sorry if was already solved... Please indicate. Reproduce code: --- echo Página Índice; Expected result: Página Índice Actual result: -- Randomly Página Índice P?gina ?ndice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php