Nevermind about that last question, looking in the source code already answered my question . So fromLocal8Bit should in fact to the trick and is just retrieving the local Text Codec and performing To Unicode.