Problem with umlauts and UTF-8


Posted on 16th Feb 2014 07:03 pm by admin

Hello every1,

I'm creating my own little CMS at the moment and got some problems with the charset. I decided to use UTF-8 so that I don't have to switch between charsets when using different languages.

Did you know?Explore Trending and Topic pages for more stories like this.
When I look at the page now, there are, however, ? instead of SOME of the umlauts. All the afftected ones come either from the database or aren't in the main template but an included one.

Before the page is being displayed by the Smarty Template system the CMS sends a header with the charset UTF-8. The templates contain the attribut encoding="UTF-8" as well. Then I set all the database charsets in phpmyadmin to UTF-8-general-ci but it still doesnt't work.

Can the problem be that the php files themselves are saved in the ANSI format?! Which one do I have to choose instead? Notepad offers Unicode, Unicode big endian and UTF-8.

Thanks for your help
No comments posted yet

Your Answer:

Login to answer
215 Like 50 Dislike
Previous forums Next forums
Other forums

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

first id from db not showing
I have a php script which displays the content of a mysql table as a html table with sorting, delete

ereg_replace issue
hi there people

i have this code happening with regards to my wamp server. is this something

Error when call dll from oracle
Hi all, please help me!

I have dll write C language, I want call it from oracle procedur

Code Review - SQL and Insertion Attacks (Warning: Not for Newbs)
Hey guys,

Its been a while, I know. Use to love coming here to answer peoples questions, but

ereg_replace()
Basically what i need to do is

$title = "This Suck's"

$striped = ereg_repl

help with insert
Hi there,

I am trying to insert some data into a database, but for some reason, it is not ins

How to search for several parameters from objects in a database?
I have a database with lots of information about objects.
Now I would like to search for 4 or 5 p

include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q

Oracle11g Patch issue
Hi all,

I'm getting the following error while installing Oracle11g Patch 11.1.0.7.0 on IBM-AI

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash