-4

I am not sure "โค้à¸1.5ลิตร(M)" is UTF string or Ansi string. What is a reliable to detect it. This string should display thai characters properly.

Unless I understand its current encoding, I can not apply conversion to show thai characters properly.

parag
  • 2,483
  • 3
  • 20
  • 34
  • @MarcoBonelli If it is UTF8 then why can't I see thai characters in it? – parag Jul 02 '18 at 11:52
  • https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/ – Biffen Jul 02 '18 at 12:22

1 Answers1

0

It is double-encoded text. To reverse:

piconv -f utf8 -t latin1 -s "โค้à¸1.5ลิตร(M)" | piconv -f iso-8859-11 -t utf8
เน?เธ?เน?เธ1.5เธฅเธดเธ?เธฃ(M)
daxim
  • 39,270
  • 4
  • 65
  • 132