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

215 Like 50 Dislike
Previous php-forum Next php-forum
Other php-forum

preg_replace question
Hello!!

I hope someone can help me with preg_replace.

I load two tables from an extern

Multi image upload
I have a gallery to build and want to build a dynamic upload form to allow for $var number of fields

Help on Order Entry Form/System Where is best to begin.
I have a dilema and a very short amount of time at this point and I'm looking for some help on decid

Polymorphism
Was wondering if someone could explain this a little better to me. I had always assumed that it had

Multiple upload and Resize
I would like some help on my script I have the for my index.php

////

<html&

image upload, resize THEN submit form
Ok so I have a form that requires the user to upload an image, and then do something with that image

unexpected T_STRING
error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

login form can you find my error?
registrationform.php seems fine send data to registration.php
registration.php seems fine checks

include problem
I have my root folder as:
Code: $root = $_SERVER["SITE_HTMLROOT"]; // the server root<

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