• alias_qr_rainmaker@lemmy.worldOP
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      2 days ago

      does chinese code take up less space? wait how many bytes does it take to encode a chinese character? is it just UTF-8 or is it something else

      • fibojoly@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        1 day ago

        UTF-16 is fine for the vast majority of Chinese characters. It has been standard since 2008 for C++ (at least for code that wants to be running on windows; Microsoft moved everything to w_string back then).
        C# uses UTF-16 natively for strings.
        Dunno about other languages

    • Camille_Jamal@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      HAHAHAHA

      I love how evil this is

      Don’t speak any chinese languages (or is that japanese?) but I do know that most words don’t have a direct translation to english

      HAHAHAHHAHAHAHAHAAAAAAAA I’M STEALING THAT IDEA!

      I’m forced to learn french because I’m in canada, so if I get corrected I can chuck a phrase of similar meaning with no direct translation

      God I love doing stuff like this