UTF16ToUTF8(#$00A9) with string '00A9'? lazarus / 62-General ---------------------------------------------------------------------- stem · 2020-02-20 22:07 Hi, Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i UTF16ToUTF8(#$00A9) returns the copyright symbol. How can use this function using the string Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i s := '00A9' ? In other words: How can I convert this string (to its corresponding hexadecimal representation) so that I can use it with UTF16ToUTF8? Thank you! stem ---------------------------------------------------------------------- marcov · 2020-02-20 22:10 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var w : word; w:=strtoint('$'+'00A9');UTF16ToUtf8(widechar(w)); ---------------------------------------------------------------------- stem · 2020-02-21 20:37 Thank you!