Welcome Guest, Not a member yet? Register   Sign In
Special Character
#1

[eluser]ibnclaudius[/eluser]
Special character like "ç" "á" "é" "õ" are being replaced by "?" and I don't know why...

I`m using:

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

What am I doing wrong?
#2

[eluser]dnc[/eluser]
Where is the data coming from? Your database? or from file? Where is it being called, displayed? Very little info posted from you. If you are using a database then your Collation may not be set correctly, which might cause this error. Set your Collation in your database table and fields that are returning this error to UTF-8 General or UTF-8 Unicode and see if that helps. If it is not being called from a database then it is your DOC_TYPE, header call, or some other "display" error. Post some code please.
#3

[eluser]ibnclaudius[/eluser]
My data is coming from simple html plain text.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;?php echo $title; ?&gt;&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
&lt;/head&gt;
&lt;body&gt;

áéíóú

&lt;/body&gt;

&lt;/html&gt;
#4

[eluser]dnc[/eluser]
[quote author="ibnclaudius" date="1339044589"]My data is coming from simple html plain text.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;?php echo $title; ?&gt;&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
&lt;/head&gt;

áéíóú

&lt;/html&gt;
[/quote]




This is a data character set error within your HTML. This error has nothing to do with codeignitor. Actually is sounds like a browser issue. Try to restart your browser and restart and the server if need be and try it again. The dataset from qouting your post is not diplaying correctly in my browser so I think this may be your issue.


The browser will display the character set as it determines. You may want to look at: this


Are you expecting English? If not what language are you expecting?


Did you copy and paste from a web page eg: Doc TYPE? this can cause this error also. Especially if your trying to display no English characters in English. Again look at the url I posted, maybe it will help you. Regards.
#5

[eluser]ibnclaudius[/eluser]
I've restarted my browser and checked on others, still the same.

I'm expecting brazilian portuguese.

I dind't.

#6

[eluser]dnc[/eluser]
I am here for a minute, do you have a page uploaded that I can see it it the charset? PM me if you do not want publicity
#7

[eluser]ibnclaudius[/eluser]
No, i don't, but I can pm you the files...
#8

[eluser]dnc[/eluser]
ok, go ahead and pm the file that is causing the charset error only please, not all files.
I think I know what the issue is, but want to confirm.
#9

[eluser]dnc[/eluser]
This is a local error. I can confirm, not Global to all users. Your charset is set correctly.
#10

[eluser]ibnclaudius[/eluser]
I downloaded a new copy of codeigniter and insert a special character to test, worked... why in my codeigniter project I'm having problems with it?




Theme © iAndrew 2016 - Forum software by © MyBB