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

[eluser]InsiteFX[/eluser]
I use XAMPP because it just installs and sets everything for you.

InsiteFX
#12

[eluser]snifty[/eluser]
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:

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

Not sure where you would have been putting

Code:
meta="utf-8"

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

Glad to hear you got your app running on Amazon!
#13

[eluser]InsiteFX[/eluser]
That is the new HTML 5 meta tag

InsiteFX
#14

[eluser]snifty[/eluser]
Whoa, totally didn't know about that, thanks.
#15

[eluser]ponto[/eluser]
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.
#16

[eluser]osci[/eluser]
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.
#17

[eluser]ponto[/eluser]
I have changed everything to UTF-8 including the ADdDefaultCharset and here is the result http://79.125.116.38/index.php/blog/
#18

[eluser]snifty[/eluser]
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
Code:
Unicode (UTF-8)
or
Code:
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
Code:
encoding
of your db and db tables is more important than the
Code:
collation
. 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!!
#19

[eluser]snifty[/eluser]
ponto your page doesn't seem to be coming up for me.
#20

[eluser]osci[/eluser]
[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