Welcome Guest, Not a member yet? Register   Sign In
Encoding problem

I use XAMPP because it just installs and sets everything for you.


One other quick thing, I'm not sure if you were just abbreviated but the full tag to specify the encoding in your markup is:

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

Not sure where you would have been putting


But you need the full line above. (It's ugly, huh? Tongue )

Glad to hear you got your app running on Amazon!

That is the new HTML 5 meta tag


Whoa, totally didn't know about that, thanks.

Snifty I have used this as the meta markup:

$meta = array(
array('name' => 'robots', 'content' => 'no-cache'),
array('name' => 'description', 'content' => 'My Great Site'),
array('name' => 'keywords', 'content' => 'love, passion, intrigue, deception'),
array('name' => 'robots', 'content' => 'no-cache'),
array('name' => 'Content-type', 'content' => 'text/html; charset=ISO-8859-1', 'type' => 'equiv')
echo meta($meta);

And this is the product:
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />

To get the app working in a Linux server:
In httpd.conf I have put this "AddDefaultCharset ISO-8859-1"
In CI config.php I have ISO-8859-1
In CI database.php all utf-8

In CI views-file I have ISO-8859-1 and "<!Doctype html>"
In mysql I have collation latin1_swedish_ci but it doesn't seam to matter if I use uft8_general_ci.

So much talk about utf8 and you are saying you are using 8859-1???????
Why this ISO?

as sinfty suggested
Quote:ponto, you need to make sure that *everything* is set to Unicode.
Any of the above can cause borkery, speaking from painful experience.

I have changed everything to UTF-8 including the ADdDefaultCharset and here is the result

ponto, what happens if you explicitly tell your browser to switch between latin-1 to utf-8? For instance in Firefox, if I do View>Character Encoding, I can select
Unicode (UTF-8)
Western (ISO-8859-1)

Another thing to keep in mind is that you might want to test with more than just a few words in the view, because the browser will sometimes rely on character counts to guess encodings (yes, even when all the headers and configurations are set). So it might confuse it further if you just hand it a few words to try to guess from.

Also, as for the settings on your db, the
of your db and db tables is more important than the
. The collation is just used for sorting, but the encoding tells the db how you want the data to be written to disk.

Hang in there!!

ponto your page doesn't seem to be coming up for me.

[quote author="snifty" date="1306849066"]ponto your page doesn't seem to be coming up for me.[/quote]
same here too

btw I noticed it is hosted on amazon right?
Could it be they have some settings too?

Theme © iAndrew 2016 - Forum software by © MyBB