Topic: problem with charset (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic: problem with charset (Page 1 of 1)" rel="nofollow" >Topic: problem with charset <span class="small">(Page 1 of 1)</span>\

Paranoid (IV) Inmate

Insane since: Dec 2001

IP logged posted posted 02-23-2010 15:27 Edit Quote

Ok this is the scenario. I am developing a website in german an slovene. This means i need following characters:
Ää,Öö,Üü, &#268;&#269; , and .
The database uses utf-8 encoding.
In the head of the pages: <meta http-equiv="Content-Type" content="text/htmlm; charset=utf-8">
I'm developing innetbeans with project encoding utf-8.

The Problem: Dynamicaly loaded data (Database) is displayed correctly. With static text i get weird symbols instead of the mentioned above.

Any Idea what is going wrong here?

thanks for the help in advance.

I noticed the C,c with hacek is displayed wrong here to.

(Edited by Blacknight on 02-23-2010 15:29)

Nervous Wreck (II) Inmate

From: San Antonio, TX
Insane since: Aug 2010

IP logged posted posted 08-09-2010 19:17 Edit Quote

Chances are you would need to just change the encoding it uses...


"While both Swedish and German generally use the ISO-8859-1 encoding (or latin1), there are characters that are sorted differently in the two languages (or actually two different ways for German)...."

# rm -rf

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 08-10-2010 09:29 Edit Quote

Where is your static text coming from, and how are you loading it into php?

Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 10-04-2010 16:27 Edit Quote

This is the new way to define html5 and the utf-8 charset.

<!doctype html>
<meta charset="utf-8">

Though you'll want to do a little research in to how html5 works. If you were using XHTML, it might break your layout with a few quirks.
Keep the bugs away using

Shine and shine. :: [old cell]

Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 10-04-2010 23:12 Edit Quote

meta elements are practically useless. At best they're redundant, at worst they're misleading bloat. You should be sending the encoding in the server headers for Apache you can dump this into a .htaccess file:

AddDefaultCharset utf-8

Post Reply
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
Your Text:
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu