IdnToAscii is too many initials



  • Please tell me something I don't understand:

    - That's assuming I made a GET request for the server.

    - Server answered me and sent out the HTML page, so I took this flow of Byte and recorded it in the area.

    Now I'm clearing the headings and I see the server indicated that the HTML code was UTF-16.

    Question: How do you know how many whites this UTF-16 symbol is? For example, Windows - wchar_t takes 2 bayths, Linux - 4 bayth.

    And I can't figure it out, so I got a four-bate server in the UTF-16 code-- how do you know it's two-bate symbols, or is it one 4-bata symbol?



  • UTF-16 is always two bikes to a symbol.

    Instead of wchar_t ( the fool - because the size depends on the platform) char16_t (sighs) std::u16stringor simply std::uint16_t



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2