Resolved: Contents show "?#167;" characters?

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
chenry
Posts: 1
Joined: Thu Nov 06, 2008 8:36 am

Resolved: Contents show "?#167;" characters?

Post by chenry » Thu Nov 06, 2008 8:42 am

I met the problem as same as below, now I resolved it, hope it can help you guys.
Hello.
I'm Korean. My site uses "euc-kr" as the encoding type(meta_codepage).
Some characters of Korean are changed into "?#167;" .
I already read the same problem at the old board of CMSimple.
But I don't know how to fix the problem.
I tried to edit the " $c = explode('§', ... " at the function rfc(), but it didn't work.
Please, help me.
http://www.cmsimple.com/forum/viewtopic.php?f=8&t=16
After I input "恭"(xb9\xa7)and press edit,the words "恭" was displayed as other strange chars(outof GBK encoding).
Is there a bug in parsing multlanguage chars?
http://www.cmsimple.dk/forum/viewtopic.php?t=1429
The guy "harteg" great inspired me.

1. function content() in "cms.php"
- if (!($edit && $adm) && $s > -1)return $o.preg_replace("/".$cf['scripting']['regexp']."/is", "", $c[$s]);
+ if (!($edit && $adm) && $s > -1)return str_replace('§','a', $o.preg_replace("/".$cf['scripting']['regexp']."/is", "", $c[$s]) );
!important: change your editor to HEX mode, focus on the 'a', modify 61 to A7, then back to normal mode. The line will be looked like below:
if (!($edit && $adm) && $s > -1)return str_replace('§','?, $o.preg_replace("/".$cf['scripting']['regexp']."/is", "", $c[$s]) );

2. in "tinymce.php"(I use the editor_external)
append one line in the end
$o=str_replace('§','a', $o.preg_replace("/".$cf['scripting']['regexp']."/is", "", $c[$s]) );

then change a to 'A7' under HEX mode
$o=str_replace('§','?, $o.preg_replace("/".$cf['scripting']['regexp']."/is", "", $c[$s]) );

It's done

Connie
Posts: 282
Joined: Thu May 22, 2008 10:11 am
Location: Hamburg
Contact:

Re: Resolved: Contents show "?#167;" characters?

Post by Connie » Thu Nov 06, 2008 4:53 pm

Can you add this to the cmsimple - wiki?

http://www.cmsimplewiki.com/

That would be great!
|---
Connie Müller-Gödecke, http://www.webdeerns.de

Post Reply