0

Well I have created a page in Dreamweaver where I use phpMyAdmin as a database. My page can read Swedish letters which are written in Dreamweaver without any problems but when it retrieves data from the database (phpMyAdmin), it gets wrong. Instead of the Swedish letters it says �. I have encoded with utf- 8

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Also the file is saved as utf-8 and I'm using Google Chrome which uses utf 8.

I've heard that I have to encode the connection with the database with utf-8 also, but I don't know how to do that?

As far as I know the way I connect is by:

<?php require_once('Connections/Audiologiska.php'); ?>

Grateful for answers!

0

2 Answers 2

1

Don't forget set charset after connecting to db php mysql charset. Also check if columns has right charset.

Sign up to request clarification or add additional context in comments.

Comments

0

On the connection file/class normally i put:

SET NAMES utf8;

And for the database collation i choose utf8_general_ci

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.