http://www.perlmonks.org?node_id=1060775


in reply to Re^2: Encode string to HTML
in thread Encode string to HTML

Indeed so - it is nigh on impossible to determine the encoding of a document from a single character, so the actual encoding of the source will only be known by gepebril69. UTF-8 seemed a reasonable first guess in this instance and it does produce the desired output for that one character.