You need to convert the code point to UTF-8. See this table: http://en.wikipedia.org/wiki/UTF-8#Design So FF=1111 1111 would fall in this category: 11 U+07FF 110xxxxx 10xxxxxx the result would be, I guess: 11000011 10111111 which is: C3 BF -- Felipe Monteiro de Carvalho