Connecting Tech Pros Worldwide Help | Site Map

Possibly PHP: Danish characters doesn't display correctly

Lars Michael
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,

I'm on a Win2000 SP4 using IIS5, PHP4 (CGI-version) and MySQL

My problem is this: Instead of getting nicely formatted danish
characters when I use PHP to retrieve data from MySQL, all I get is a
'}'-character.

If I access the database through a DOS promt, everything looks just
like it should. All characters are formatted correctly.

Executing "print('ÆØÅ')" works fine too, all characters come out
nicely.

Any suggestions?

Thanks in advance,
/lmss
Daniel Tryba
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Possibly PHP: Danish characters doesn't display correctly


Lars Michael <lmsoren@hotmail.com> wrote:
[on a win32 machine][color=blue]
> If I access the database through a DOS promt, everything looks just
> like it should. All characters are formatted correctly.
>
> Executing "print('???')" works fine too, all characters come out
> nicely.[/color]

The characters above are no danish characters... Some my guess whould
be that when you get corrrect output on a windows machine but not in a
browser, you are using different character encodings... Most probably on
the windows machine it will be some windwos-125x encoding, and the
default iso-8859-1 encoding in the browser...

--

Daniel Tryba

Lars Michael
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Possibly PHP: Danish characters doesn't display correctly


Daniel Tryba <news_comp.lang.php@canopus.nl> wrote in message news:<c3g2k2$7iu$1@news.tue.nl>...[color=blue]
> Lars Michael <lmsoren@hotmail.com> wrote:
> [on a win32 machine][color=green]
> > If I access the database through a DOS promt, everything looks just
> > like it should. All characters are formatted correctly.
> >
> > Executing "print('???')" works fine too, all characters come out
> > nicely.[/color]
>
> The characters above are no danish characters... Some my guess whould
> be that when you get corrrect output on a windows machine but not in a
> browser, you are using different character encodings... Most probably on
> the windows machine it will be some windwos-125x encoding, and the
> default iso-8859-1 encoding in the browser...[/color]

okay thanks, I'm down with a soare throat right now, but I'll look
into it as soon as I'm back at work. Might just drop by and bug you
again later :-)
Closed Thread