Converting UTF8 to ANSI (ISO-8859-1) in Delphi

后端 未结 2 1540
我寻月下人不归
我寻月下人不归 2021-01-06 16:48

I have a question about a code that i have to convert UTF8 strings to ANSI strings. My code works for accents in vowels, but with letter Ñ it doesn\'t work. The code breaks

2条回答
  •  离开以前
    2021-01-06 17:23

    I solved the issue invoking, apart from the function that i had, the internal function UTF8toAnsi. I'm working on Delphi 2010.

    This way: Utf8toAnsi(convertir_utf8_ansi(source));

提交回复
热议问题