Funny DB characters

Get help on web editors (Frontpage, Dreamweaver) and web languages (HTML, ASP, PHP).
Post Reply
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Funny DB characters

Post by DarkRanger »

I have a character in the database ö that returns as �.

Is there any way I can fix this? I'm using php5 and MySQL.

It's supposed to read Dölling and not D�lling
Image
SykomantiS
Registered User
Posts: 14085
Joined: 06 Oct 2004, 02:00
Location: Location, Location...
Contact:

Re: Funny DB characters

Post by SykomantiS »

What char-set are you using? Should be utf8 from what I can gather from Google?
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: Funny DB characters

Post by DarkRanger »

Yeah that's what I saw on google as well.

Changed it to utf8_bin because that's the closest to utf8 that phpmyadmin offers...
Image
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: Funny DB characters

Post by DarkRanger »

any help??
Image
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Funny DB characters

Post by doo_much »

As a matter of interest DR - where is the � returned?
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: Funny DB characters

Post by DarkRanger »

After coming from the DB. In the database itself it reflects as the o with the kolletjies on.

In my header I've also set the page to utf8
Image
User avatar
Tribble
Registered User
Posts: 88465
Joined: 08 Feb 2007, 02:00
Processor: Intel Core i7-4770K CPU@3.50GHz
Motherboard: ACPI x64-based PC
Graphics card: GeForce GTX 780 Ti
Memory: 16GB
Location: Not here
Contact:

Re: Funny DB characters

Post by Tribble »

And it is a fontset that your PDF program has?
Image
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Funny DB characters

Post by doo_much »

No - what I mean is where are you viewing it as � ?

If the database "reflects [it] as the o with the kolletjies on", then whatever you are using to view it that shows the funny character must be at fault?
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
Bladerunner
Registered User
Posts: 14338
Joined: 04 Sep 2004, 02:00
Processor: i386DX Sooper
Motherboard: A blue one
Graphics card: A red one
Memory: Hard drive
Location: On a Möbius strip
Contact:

Re: Funny DB characters

Post by Bladerunner »

doo_much wrote:"o with the kolletjies on"
Umlaut O.
If I weren't insane: I couldn't be so brilliant! - The Joker
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Funny DB characters

Post by doo_much »

Wisedonkey...
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: Funny DB characters

Post by DarkRanger »

doo, I don't understand exactly what you mean.

It's in a php page that is being called by ajax. It basically loads the employee list from the DB and then displays it. There where it is displayed in the page it displays as hat funny character.
Image
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: Funny DB characters

Post by doo_much »

What I mean is that if the "Umlaut O" (thanks Blade) i OK in the database, then obviously whatever you are using to view it is fubar?

And since you're using php I'm assuming there's a stylesheet involved somewhere? And maybe whatever font is specified in there doesn't support the "Umlaut O"?

As I said - merely guessing and assuming here...
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: Funny DB characters

Post by DarkRanger »

I'm using verdana... Pretty sure it supports it...

Anyhow, I've decided to parse weird characters out and just show them without any umlauts...
Image
Post Reply