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.

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

Consuming third party Payment Gateway API from Procedure.
Hi All,

First of all i would like to thank all the people of the oracle forum for providi

Variable passed to each() is not an array or object
Hi,

This is a email a friend type of form, and it isn't working anymore.

<?

Save remote XML to local website folder
Hi, I hope you can help me out. I would like to be able to pull an XML file from another site and t

output_buffering so rewrite
I'm planning to rewrite some of my scripts so they don't have to use output buffering to accomplish

what are '%S%', '%E%'
for example when i see Code: [Select]printf("Hello %srn", $name);
what does %s means

Pspell with my own dictionary
Hello!
I've tested two cases using pspell functions.
1)
Code: $dictionary_link = pspell_new

PHP time (deadline within one week)
I have a column ['projdue'], which stores the deadline for a project.
I have PHP code and <

Estimations and Effort
HI Gurus,

Would like to know whether SAP have a provision for carrying out the Project es

PHP & Java
Hello,

can PHP code be used inside java code?

Code: <SCRIPT LANGUAGE="Java

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

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