think tank forum

ttf development » utf-8

lucas's avatar
18 years ago
link
lucas
i ❤ demo
one thing that i just realized that i have to do to make ttf utf-8 compatible:

add utf8_encode() to our clean() function. right now, users enter data in ISO-8859-1 encoding. it needs to be converted to UTF-8 before it is stored in the database. i didn't know that i had to encode it before inserting it into the database.

does anyone know if all user-agents submit data as ISO-8859-1? do some submit form data in UTF-8?
lucas's avatar
18 years ago
link
lucas
i ❤ demo
i think i just won.

:D
lucas's avatar
18 years ago
link
lucas
i ❤ demo
yeah. i'll proclaim it as working.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
all of those question marks were already there when i copied it from:
http://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html

also, i used pre tags around the fixed-font areas, but for some reason it still performed nl2br there.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
http://www.nicknettleton.com/zine/php/php-utf-8-cheatsheet
lucas's avatar
18 years ago
link
lucas
i ❤ demo
http://www.shawnolson.net/a/946/unicode-data- … ql-41.html
lucas's avatar
18 years ago
link
lucas
i ❤ demo
http://www.oreillynet.com/onlamp/blog/2006/01 … in1_t.html
lucas's avatar
18 years ago
link
lucas
i ❤ demo
Ζωροάστρης

Zōroastrēs

زرتشت
lucas's avatar
18 years ago
link
lucas
i ❤ demo
okay, now i'm extremely confident that ttf is utf-8 compatible.

out of ttf's 4247 posts, 22 use multi-byte characters. i have to go through by hand and figure out a way to convert these to utf-8.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
http://www.thinktankforums.com/admin_multibyte.php

here's the posts.. now i just gotta figure out how to convert them and we're ready to go again!
lucas's avatar
18 years ago
link
lucas
i ❤ demo
note:
i am the only user with a multi-byte profile, user_id 1.
only one thread has a multi-byte title, thread_id 112.
no users have a multi-byte username, email, or title.
lucas's avatar
18 years ago
r1, link
lucas
i ❤ demo
this post has been archived.
lucas's avatar
18 years ago
r1, link
lucas
i ❤ demo
this post has been archived.
lucas's avatar
18 years ago
r1, link
lucas
i ❤ demo
this post has been archived.
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
http://trac.wordpress.org/ticket/3517
:o
lucas's avatar
18 years ago
link
lucas
i ❤ demo
http://forums.punbb.org/viewtopic.php?pid=93129#p93129
:o
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
i've never seen this: ☁ before :o I wonder if it works okay?
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
haha cloudy



:)
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
haha that's great
 
18 years ago
link
dbrown
firefox renders it, ie6 does not.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
same here
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
yeah it didn't show up in ie at work, whatever -- i love my cloud.
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
top for cloudy.

also I just noticed a post I made today is at the bottom of admin_multibyte.php.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
it was the ™
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
haha yeah, I figured.