Topic: problem with charset Pages that link to <a href="https://ozoneasylum.com/backlink?for=31689" title="Pages that link to Topic: problem with charset" rel="nofollow" >Topic: problem with charset\

 
Author Thread
Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
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.

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

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

amperage
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...

quote:
http://dev.mysql.com/tech-resources/articles/4.1/unicode.html

"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)...."



_______________________
http://www.txlans.com
~
# 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?

Bmud
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.

code:
<!doctype html>
<head>
<meta charset="utf-8">
</head>



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 http://www.quirksmode.org

Shine and shine. :: [old cell]

reisio
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:

code:
AddDefaultCharset utf-8



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu