Re: [PHP] Character encoding hell

2010-10-27 Thread Marc Guay
> Have you tried using the utf8 meta tag rather than using the htmlentities() > function? That should solve the first issue, as I reckon the problem lies > with the way your encoding the filename. It seems that the filenames are ISO encoded as if I set the meta tag to ISO and remove the htmlentiti

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
> You say that in putty it is converted to a '?'?  so, on linux, the file > name is no longer what you intended it to be, so wouldn't you then need > to call the file EXACTLY as it is on the linux server? I thought this too at first, but if I run htmlentites() on the filename it displays the  cha

Re: [PHP] Character encoding hell

2010-10-26 Thread Steve Staples
> > Have you checked to see if that filename is what you think it is on the > > Linux server? > > The character is shown as a question mark in putty. I've tried > forcing a UTF-8 font to make sure it's not a rendering issue but it > didn't seem to make a difference. I'm not convinced the encodin

Re: [PHP] Character encoding hell

2010-10-26 Thread Bastien Koert
On Tue, Oct 26, 2010 at 1:32 PM, Mari Masuda wrote: > > On Oct 26, 2010, at 10:10 AM, Marc Guay wrote: > >>> A windows server, or windows client to the same Linux server? I believe >>> that this issue is starting to get a bit over my head, with the different >>> operating systems involved and su

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
> Where is the filename coming from? Is it hard-coded in the script or is your > script reading it from a directory listing? The filename is being read from the file via scandir(). File created on Windows, transferred to *nix. > Have you checked to see if that filename is what you think it is on

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
> I think one way to do this is something like this (untested): This is a good idea, but I'm stubborn and believe it can be solved without adding more code. Thanks, though, I'll probably end up using it once I've ruined every other possibility. Marc -- PHP General Mailing List (http://www.php.

Re: [PHP] Character encoding hell

2010-10-26 Thread a...@ashleysheridan.co.uk
Where is the filename coming from? Is it hard-coded in the script or is your script reading it from a directory listing? Have you checked to see if that filename is what you think it is on the Linux server? Was Apache the web server both times, or was iis used on windows? If it was, look for a

Re: [PHP] Character encoding hell

2010-10-26 Thread Mari Masuda
On Oct 26, 2010, at 10:10 AM, Marc Guay wrote: >> A windows server, or windows client to the same Linux server? I believe that >> this issue is starting to get a bit over my head, with the different >> operating systems involved and such. > > Windows server. This is over my head, too. I'm gu

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
> Have you tried using the utf8 meta tag rather than using the htmlentities() > function? That should solve the first issue, as I reckon the problem lies > with the way your encoding the filename. The page is being encoded in UTF-8. Without htmlentities() the special character is displayed as a b

Re: [PHP] Character encoding hell

2010-10-26 Thread a...@ashleysheridan.co.uk
Have you tried using the utf8 meta tag rather than using the htmlentities() function? That should solve the first issue, as I reckon the problem lies with the way your encoding the filename. Linux filesystems have far less limitations on filenames, so it could be that windows is doing something

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
> A windows server, or windows client to the same Linux server? I believe that > this issue is starting to get a bit over my head, with the different > operating systems involved and such. Windows server. This is over my head, too. I'm guessing that Windows and Linux encode filenames different

Re: [PHP] Character encoding hell

2010-10-26 Thread Nicholas Kell
On Oct 26, 2010, at 12:00 PM, Marc Guay wrote: > Again, if it helps, a link formatted in the same way to the same file > links correctly on a windows machine. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > A windows server, or w

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
Again, if it helps, a link formatted in the same way to the same file links correctly on a windows machine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
>  If I am understanding correctly, you are referring to a HTML specific issue > where the HTML and browser configuration is displaying your characters > improperly? No, the browser is displaying the characters of the filename fine (using htmlentities converts the ? unknown character into an Â.

Re: [PHP] Character encoding hell

2010-10-26 Thread Nicholas Kell
On Oct 26, 2010, at 11:38 AM, Marc Guay wrote: >> Are you using UTF-8? > > Could you be more specific? Do you mean in the browser/php header or > in the filesystem? I created the file on a Windows machine, > transferred them to a Linux machine, and the encoding of the page is > UTF-8. > > I j

Re: [PHP] Character encoding hell

2010-10-26 Thread Marc Guay
> Are you using UTF-8? Could you be more specific? Do you mean in the browser/php header or in the filesystem? I created the file on a Windows machine, transferred them to a Linux machine, and the encoding of the page is UTF-8. I just noticed a strange thing which might shed some light. If I j

Re: [PHP] Character encoding hell

2010-10-26 Thread Simcha Younger
On Tue, 26 Oct 2010 11:56:17 -0400 Marc Guay wrote: > > I have a directory with a bunch of PDFs in it that my webpage displays > links to. All of the files have the french character  in them. The > operating system is Linux (I did not experience this problem on a > Windows machine). I don't wa

Re: [PHP] Character encoding hell

2010-10-26 Thread Nicholas Kell
On Oct 26, 2010, at 10:56 AM, Marc Guay wrote: > Hi folks, > > I've got a problem with character encoding that's threatening to kill > my little brain. Here we go: > > I have a directory with a bunch of PDFs in it that my webpage displays > links to. All of the files have the french character

Re: [PHP] Character Encoding for em-dash

2010-06-30 Thread Gaurav Kumar
Thanks Tedd, but I cant make this change in the application UI level code for this problem. This application is a SAAS and we have certain quality standards which we need to follow.. Any other suggestion? Thanks, -GK On Sun, Jun 27, 2010 at 3:06 AM, tedd wrote: > At 9:03 PM +0530 6/17/10, Gau

Re: [PHP] Character Encoding for em-dash

2010-06-26 Thread tedd
At 9:03 PM +0530 6/17/10, Gaurav Kumar wrote: Hi All, My client has a database (Sybase) in which a table column URL contains a string like- http://www.pjonline.com/cpd/nutrition_ _drugnutrient_interactions The box like un-recognized character is emdash. I need to display the data on the web let

Re: [PHP] Character encoding

2009-08-05 Thread Igor Escobar
Build some script to convert to these comments. Check this out: Regards, Igor Escobar Systems Analyst & Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) 2009/8/5 b > On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.) wrote: > >>

Re: [PHP] Character encoding

2009-08-05 Thread b
On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.) wrote: Hi, I have a mysql database, which the users can insert comments. As the users can be from different countries, with different character encoding, the mysql table can contain various special characters. How can I be sure to display t

Re: [PHP] character encoding

2008-03-26 Thread Zoltán Németh
2008. 03. 26, szerda keltezéssel 18.04-kor Bill ezt írta: > Hi Zoltan, > > >> A column in a table has" Brbeuf " in it. (3rd caracter is é) > >> In the body that column shows " Brbeuf " in Windows Outlook. > >> > >> How could I translate to the correct encoding so that accents show > >> correctly

Re: [PHP] character encoding

2008-03-26 Thread Bill
Hi Zoltan, >> A column in a table has" Brbeuf " in it. (3rd caracter is é) >> In the body that column shows " Brébeuf " in Windows Outlook. >> >> How could I translate to the correct encoding so that accents show >> correctly >> in Outlook ? > > based on the encoding of your e-mail, my guess is t

Re: [PHP] character encoding

2008-03-26 Thread Zoltán Németh
2008. 03. 26, szerda keltezéssel 15.57-kor Bill ezt írta: > Hi > > LAMP > > A column in a table has" Brbeuf " in it. (3rd caracter is é) > > I use that table to send emails. > > In the body that column shows " Brébeuf " in Windows Outlook. > > How could I translate to the correct encoding so t

Re: [PHP] Character Encoding problem

2005-07-21 Thread Marco Tabini
On 7/21/05 8:32 AM, "Regine Velasquez" <[EMAIL PROTECTED]> wrote: > Whenever I switch the encoding of a page to > UTF-8, the characters ñ, ë, ì, û, á, etc., > automatically changes to question marks. I've > originally set the encoding of a page to ISO-8859-1 using header () function. > > header (