Hi guys,
I've searched the boards a bit, without luck - i hope you can help me.
I'm loading in a HTML-page with simple english first:
My cat is called "ninja". It's green.
The '-symbol and "-symbol gets replaced by a weird �-symbol.
The same with the danish letters: ÆØÅ.
It's a bit weird tho, due to it's being perfectly shown, when opened in a webbrowser.
The way im getting the HTML, inside the FCKeditor:
$oFCKeditor->Value = file_get_contents($_GET["doc"]);
edit.php?doc=whatever.html
I'm not a shark at php, but i'm learning, so be gentle .
Edit:
I dunno if it's to some help, but i did some testing. Made a test.php, with the:
echo file_get_contents($_GET["doc"]);
No problems there... showed perfectly in the browser.
Edit edit:
So sorry for double post, i couldn't move the topic here.
Hope for your understanding.
Mon, 11/17/2008 - 20:15
#1
Re: Foreign symbols, and letters
When editor is disabled, go to Tools > Page Info in FF. What do you see at the top where it says Encoding?
Re: Foreign symbols, and letters
I hope I'm replying correct, and avoid looking like an idiot
.
I've disabled javascript, and an the "info about page" it says:
UTF-8
Is that the info you were looking for, A.M.?
Re: Foreign symbols, and letters
When it's doing the weird symbols.. i can go to in the browser (firefox), and turn it from UTF-8 to ISO-8859-1.
By doing that, it shows it perfectly. But why doesn't it just do that automatic?
I hope it helps solve the problem.
Re: Foreign symbols, and letters
I gotta start reading the code, before i post.
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
I changed UTF-8 to ISO-8859-1, and it worked perfectly.
But why UTF-8?
Re: Foreign symbols, and letters
Andre