Tag Archives: utf8

Google in te reo Māori

Well almost, it would be great if google translate had te reo Māori options. Despite all the news about how great this is for te reo maori, I can’t actually find any Google application that will do anything in te reo Māori.
Unbelievably, I could find Klingon, Elmer Fudd, Hacker and something called “Bork bork bork“; […]

Spring MVC

We have been looking at this framework for an intranet site… it led to my realisation that Java really made things pretty difficult to display international character sets… but that was an earlier post.
I followed most of the instructions in developing a Spring Framework MVC, though I didn’t create a JDBC based persistence layer. We’ll […]

Java internationalisation?

It seemed difficult to believe, but Java seems alarmingly Latin-1.
Internationalization (I18N) - ResourceBundle doesn’t read messages correctly from properties file in utf8
Quick and Dirty Hack for UTF-8 Support in ResourceBundle
Java UTF–8 international character support with Tomcat and Oracle
You can use native2ascii to convert files to ascii. This tool will expand characters to escaped character […]

php-mysql connection charset fix

In my earlier post php-mysql connection charset fix, I mentioned I was having issues with enforcing an UTF8 charset. I found the solution:
@$conn = new mysqli(DB_SERVER, DB_USER, DB_PASS, DB_NAME);
// or die(mysql_error());
if (!$conn||mysqli_connect_errno())
{
throw new Exception(’Could not connect to database server:’.
mysqli_connect_error());
}
else
{
$conn->query( “SET NAMES ‘utf8′” );
$conn->set_charset(”utf8″);
return $conn;
}

Whizzoo Iñtërnâtiônàlizætiøn

Whizzo now with Iñtërnâtiônàlizætiøn.. my girlfriend will be happy! And it seems that some of the articles I quoted in my earlier post Portable php-mysql connection charset fix may have held some truth. The solution, eventually had something to do with the following two lines of PHP code.
$conn->query( “SET NAMES ‘utf8′” );
$conn->set_charset(”utf8″);
Which need to be […]