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

User input in to variable
Hi all,

I'm sure this is very easy but I'm having another brain freeze!

At the end of

Need help making a blockquote and line items conditional
I have some code I bought a few years ago that allows my clients to update content on their site usi

Display search result
Hi!

I have a SQL database with information about albums and track (music).

This is wh

SCRIPT ERROR
Here is the CONTACT FORM I made for our website:

<form id="form1" name="

Can't get the unicode character
I'm trying to get some text from various parts of a file. I have converted the file to hex (bin2hex)

timed header image rotation
I have a joomla site and I was trying to setup a rotating image based on timing NOT just refreshing

parsing error
can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The e

help with calculations on a flat text file
hello,
I have this code below that is attached to a flat file like this:
Email:LastName:FirstN

Filling gaps in dates
So i'm doing a query for sales data and my return array looks like this

('date' => '20

Parse error: parse error in C:wampwwwlogspagesmembers.php on line 16
I dont see the problem with this, I always get Parse error: parse error in C:wampwwwlogspagesme

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