Categories > TinyButStrong general >

htmlconv problems (utf-8)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: tobi
Date: 2006-10-26
Time: 18:05

htmlconv problems (utf-8)

hi,
i get a <option> list from a function. because all <>... are encodet, i use htmlconv=0.
thats allright, but when i use a ?äöü a wrong symbol is shown. without htmlconv it is allright, exept the <>
i use utf-8 and the function:
function f_utf8_conv($x) {
  return htmlspecialchars(utf8_encode($x));
}
what function or htmlconv can i use the show the äöü write and do not convert the ><??
thanks a lot!
tobi
By: Skrol29
Date: 2006-10-27
Time: 10:19

Re: htmlconv problems (utf-8)

Try
function f_utf8_conv($x) {
  return utf8_encode($x);
}
By: tobi
Date: 2006-10-27
Time: 15:09

Re: htmlconv problems (utf-8)

Thanks a lot, now its fine!

is the "not using of htmlspecialchars" a disadvantage?