Understanding text for C Programmers (UTF-8, Unicode, ASCII)

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 39

  • @Dolberggames
    @Dolberggames 2 ปีที่แล้ว +11

    this video was just excellent in every aspect, I watched several other videos but this finally helped me get it

  • @cliffmathew
    @cliffmathew ปีที่แล้ว +3

    The first video that clearly explained the multibyte codepoint. Thanks!

  • @Moe5Tavern
    @Moe5Tavern 2 หลายเดือนก่อน

    Thank you so much for the video! I really enjoyed it

  • @mar5253
    @mar5253 3 ปีที่แล้ว +7

    Well explained video!. Back when i did my first win32 program i just did what you said and went with ASCII.

    • @godnyx117
      @godnyx117 2 ปีที่แล้ว +2

      For how many years ago we are talking about?

  • @jorgevnueva
    @jorgevnueva 8 หลายเดือนก่อน

    Bastante interesante el video. Gracias por la explicación.

  • @godnyx117
    @godnyx117 2 ปีที่แล้ว +2

    Great video! Thanks a lot for your work!

  • @michalski9141
    @michalski9141 2 ปีที่แล้ว

    ascii my beloved

  • @someoneisasking8330
    @someoneisasking8330 3 ปีที่แล้ว +2

    ok the explanations is amazing. no too in-depth but enough for me to understand the basic of how UTF-8 came about. Wish you could say more about why is UTF 8 better than UTF 16 :)

    • @GreggInkCodes
      @GreggInkCodes  3 ปีที่แล้ว +5

      It is because UTF-16 wastes memory. UTF-16 will always use either 2 or 4 bytes even when 1 is enough. UTF-8 uses just one byte for the old 7-bit ASCII.

    • @someoneisasking8330
      @someoneisasking8330 3 ปีที่แล้ว

      @@GreggInkCodes I see. Thank you.

  • @edwaoman2829
    @edwaoman2829 2 ปีที่แล้ว

    I love your channel!

  • @elias-sk
    @elias-sk 2 ปีที่แล้ว +2

    Im trying to get å ä ö into my program. I didnt really understand why at 12:57 line 86 uint32_t. Is this just how utf-caracters are declared?

    • @GreggInkCodes
      @GreggInkCodes  2 ปีที่แล้ว +1

      A codepoint can have a value of up to 1.1 million. Using a uint32_t is used just to make sure I have enough space.

  • @drumna
    @drumna 3 ปีที่แล้ว +2

    great video! wondering why you got so few subscribers ^^

  • @nonamearmyid50
    @nonamearmyid50 2 ปีที่แล้ว

    Hey bro. can you help me how to open utf-8 file
    ?

    • @GreggInkCodes
      @GreggInkCodes  2 ปีที่แล้ว

      You open it just like any other file. Of course, if you want to display its contents, you need an editor which supports unicode.

  • @KangJangkrik
    @KangJangkrik 2 ปีที่แล้ว

    Sorry for a year late Mr. Professor, may I enter?

    • @GreggInkCodes
      @GreggInkCodes  2 ปีที่แล้ว +1

      Always welcome.

    • @KangJangkrik
      @KangJangkrik 2 ปีที่แล้ว

      @@GreggInkCodes thank you sir! (proceed to enter class with sandals)

  • @philtoa334
    @philtoa334 2 ปีที่แล้ว

    A very good channel !!

  • @md_ez
    @md_ez 3 ปีที่แล้ว

    I have a question , please

    • @GreggInkCodes
      @GreggInkCodes  3 ปีที่แล้ว

      Yes?

    • @md_ez
      @md_ez 3 ปีที่แล้ว

      @@GreggInkCodes Do you have an account on a social media website ?

    • @GreggInkCodes
      @GreggInkCodes  3 ปีที่แล้ว +2

      @@md_ez I have a reddit account. Every time I post a video, I notify people of the C_Programming subreddit.
      (www.reddit.com/user/gregg_ink)
      There 2 main projects I currently work on. 1) This youtube channel. 2) I am writing a sci-fi novel.
      I have an account on instagram but I use that primarily to stay in touch with fellow writers. (@greggink)
      I have a twitter account but I haven't posted in quite a while (@Gregg_Ink).

    • @md_ez
      @md_ez 3 ปีที่แล้ว

      @@GreggInkCodes I have messaged you.

  • @lihuseynzad6983
    @lihuseynzad6983 3 ปีที่แล้ว

    your code not working

    • @GreggInkCodes
      @GreggInkCodes  3 ปีที่แล้ว

      Can you elaborate? All code is tested before I put it in the video. You can see that I run and demonstrate the code in the video so it is clearly working. If you are going to claim something is not working, it obviously needs a bit of explaining.

    • @lihuseynzad6983
      @lihuseynzad6983 3 ปีที่แล้ว

      @@GreggInkCodes I use Dev C++ I try use this code but not working

    • @GreggInkCodes
      @GreggInkCodes  3 ปีที่แล้ว

      @@lihuseynzad6983 Well, I don't know. Are you running it on Windows or on Linux? The code is designed for Linux, I don't think that the Dos prompt does support emojis. It could be any number of things, like for example maybe a setting within dev c++. Have you tried using gcc like I demonstrate in the video?

    • @lihuseynzad6983
      @lihuseynzad6983 3 ปีที่แล้ว

      @@GreggInkCodes Now I understand why your code not working Because I use this code on Windows

    • @lihuseynzad6983
      @lihuseynzad6983 3 ปีที่แล้ว

      @@GreggInkCodes Can you help me ? I want to print unicode character but I can't find library for C++