It's a joke ! (se dice así ?) I don't know what it means "ČĆŽĐŠčćžđš". Do you understand ? it is not my intention to bother (No es mi intención molestar)
I hate these encoding issues. I'm open to suggestions from anyone that has one. Maybe a function for encoding/decoding from form submit, to saving to database, to displaying on screen.
Keeping in mind that html entered in discussion titles should be encoded.
Well, I didn't post any HTML in title, that are just Croatian characters.
The solution is right in your hands. Just make sure that both input and output is set in utf-8 and you're done. Also, that character encoding is properly set by server:
`AddType text/html;charset=utf-8 .php`
or this, so that everything is in utf-8:
`AddDefaultCharset utf-8`
But I'm not sure is the last example correct, I know it goes something like that...
Oh, I see what you're saying. I was hoping to do something within php itself so that someone who wants to use vanilla, but has no control over their server settings, can get the proper encoding.
Comments
ČĆŽĐŠčćžđš
Are you sure ? 8¬)I don't know what you mean with that. Yes, I'm sure.
But, encoding sent-out by the server is ISO-8859-1, and there is no support to utf-8.
"You never go to bed, without know a new thing"
Keeping in mind that html entered in discussion titles should be encoded.
The solution is right in your hands. Just make sure that both input and output is set in utf-8 and you're done. Also, that character encoding is properly set by server:
`AddType text/html;charset=utf-8 .php`
or this, so that everything is in utf-8:
`AddDefaultCharset utf-8`
But I'm not sure is the last example correct, I know it goes something like that...
I was hoping to do something within php itself so that someone who wants to use vanilla, but has no control over their server settings, can get the proper encoding.
Use this for that:
<?php
header('content-type:text/html;charset=utf-8');
?>
IIRC.
Yes, maybe, because before encoding was iso. I will open new thread with the same characters to properly test it.