Connecting Tech Pros Worldwide Help | Site Map

Possibly PHP: Danish characters doesn't display correctly

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 04:18 AM
Lars Michael
Guest
 
Posts: n/a
Default Possibly PHP: Danish characters doesn't display correctly

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

  #2  
Old July 17th, 2005, 04:18 AM
Daniel Tryba
Guest
 
Posts: n/a
Default 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

  #3  
Old July 17th, 2005, 04:20 AM
Lars Michael
Guest
 
Posts: n/a
Default 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 :-)
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.