Blogs

Blogs

Testing UTF-8 encoding

If you are living in a country where the ASCII character set is often almost sufficient but you need to ensure that you can handle UTF-8 well - how do you ensure that? You might not know a language that uses "funny" characters enough to recognize the content that you need to enter to test if it is handled correctly.

Some time ago I've found a way to intuitively decide if text content is correctly handled: Just flip it upside down using strange utf-8 characters. Immediately recognizable, somewhat funny and easy to use.

Caveat: You need a font that supports the characters. If this article contains itself upside down, at least your browser uses such a font. Hint: goto http://fliptitle.com/

 /ɯoɔ˙ǝlʇıʇdılɟ//:dʇʇɥ oʇoƃ :ʇuıɥ ˙ʇuoɟ ɐ ɥɔns sǝsn ɹǝsʍoɹq ɹnoʎ ʇsɐǝl ʇɐ 'uʍop ǝpısdn ɟlǝsʇı suıɐʇuoɔ ǝlɔıʇɹɐ sıɥʇ ɟı ˙sɹǝʇɔɐɹɐɥɔ ǝɥʇ sʇɹoddns ʇɐɥʇ ʇuoɟ ɐ pǝǝu noʎ :ʇɐǝʌɐɔ

˙ǝsn oʇ ʎsɐǝ puɐ ʎuunɟ ʇɐɥʍǝɯos 'ǝlqɐzıuƃoɔǝɹ ʎlǝʇɐıpǝɯɯı ˙sɹǝʇɔɐɹɐɥɔ 8-ɟʇn ǝƃuɐɹʇs ƃuısn uʍop ǝpısdn ʇı dılɟ ʇsnɾ :pǝlpuɐɥ ʎlʇɔǝɹɹoɔ sı ʇuǝʇuoɔ ʇxǝʇ ɟı ǝpıɔǝp ʎlǝʌıʇınʇuı oʇ ʎɐʍ ɐ punoɟ ǝʌ,ı oƃɐ ǝɯıʇ ǝɯos

˙ʎlʇɔǝɹɹoɔ pǝlpuɐɥ sı ʇı ɟı ʇsǝʇ oʇ ɹǝʇuǝ oʇ pǝǝu noʎ ʇɐɥʇ ʇuǝʇuoɔ ǝɥʇ ǝzıuƃoɔǝɹ oʇ ɥƃnouǝ sɹǝʇɔɐɹɐɥɔ "ʎuunɟ" sǝsn ʇɐɥʇ ǝƃɐnƃuɐl ɐ ʍouʞ ʇou ʇɥƃıɯ noʎ ¿ʇɐɥʇ ǝɹnsuǝ noʎ op ʍoɥ - llǝʍ 8-ɟʇn ǝlpuɐɥ uɐɔ noʎ ʇɐɥʇ ǝɹnsuǝ oʇ pǝǝu noʎ ʇnq ʇuǝıɔıɟɟns ʇsoɯlɐ uǝʇɟo sı ʇǝs ɹǝʇɔɐɹɐɥɔ ııɔsɐ ǝɥʇ ǝɹǝɥʍ ʎɹʇunoɔ ɐ uı ƃuıʌıl ǝɹɐ noʎ ɟı

(Disclaimer and shameless plug: this is a recycled article)

I hope this will be used by Liferay testers as we ran into some problems (trivial but still a problems) with handling non-acii/latin1 letters by search portlets.
Interesting! Thank you, Olaf.
Interesting article and does not matter that it is little old and recycled emoticon

- Sampsa
Interesting, your idea is useful for coffee table meeting as you do presentation to your opposite side.

http://www.gettyimages.com/detail/200332325-001/Digital-Vision