PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

♪♬ ~ Unicode conversion

Could anyone tell me, how exactly is it this forum has the wonderful ability to convery nearly any unicode symbol, including Kanji, into a numeric code that seems to be recognizable on almost any form out there?

Kanji such as 毎 would normally, of course, never work on most html pages or forms. However, once ran through this board's post processing, it comes out as: &# 27598; and can be inputted just about anywhere, intact.

Basically, I'm wondering if there's an easy way to reproduce this effect so I can code it into the PHP input forms I use on a daily basis.
Most people don't have the Unicode font on sadly it seems. Isn't there a table available somewhere that'll show the Unicode chars and their equivlants?
True, but the audience the site is targeted toward most likely will have unicode fonts installed. So that shouldn't be much of a problem.

There is the charmap.exe that lists unicode values, but the numbers don't correspond in any way I can determine. I'm actually not sure what the numeric codes correspond to.
Fonts for non-US keyboards should be displayed as jpegs so that everyone can see them without having to install anything extra.
Caesar... what the heck? Come on, think about that for half a second, would you? There's other languages in this world than English. And believe it or not, they too need to work with text. How the HECK could you word process jpegs.

Last I checked, most Windows 2000/XP systems should have unicode support built right in. In some cases it simply needs to be switched on.
True. It was just an idea. *shrug*
Yea, if the target audience fits the use, then I could understand doing that, but otherwise, that's quite a stupid suggestion.
It would work on a single-site basis.
I know that for US targeted sites, to people whom are likely not to have unicode fonts, graphics could work. That's a seperate issue though. I'm not concerned with people who can't read the fonts, and I couldn't use graphics in this case to begin with.

I'm simply wondering what system phpbb has that allows it to convert standard unicode characters like Japanese into these numeric html strings for general use. Or if anyone knows how the conversion is made... a table perhaps.

I can't use graphics because I need to copy and paste text into php input fields. Fields which normally are not able to accept unicode input, but I can use these html strings as a work around. Like this:

8じ はん です。 でも クラス の まえ に ともだち と あいます から。

I've never ran across this type of post processing conversion before.
Well, it seems it's a feature of all (or at least the newer) PHPbb boards so that makes things a little easier. At least now I can hunt down the code in the source and apply it.

Thanks anyway guys. For anyone else wondering, it seems here is the answer: http://www.voodoobdsm.com/phpBB2/docs/FAQ_RC4.html
Chris Edwards · 09 Dec 2003, 03:50 UTC
Yeah, I was going to suggest that you take a look at the freely available phpBB code that this board runs on. I believe all of the post processing is done in the bbcode.php file, but I could be wrong.