πŸ€–Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Missing or wrong Unicode characters for Japanese Katakana

    Bug Report
    1
    2
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wingtiger
      last edited by

      There are some missing or wrong Japanese Katakana letters in unicode font.

      The sample code below shows the unexpected results.

      from m5stack import *
      from m5stack_ui import *
      from uiflow import *
      import time
      
      screen = M5Screen()
      screen.clean_screen()
      screen.set_screen_bg_color(0xFFFFFF)
      
      label0 = M5Label('γƒ†γ‚Ήγƒˆγ‚±γƒΌγ‚Ή', x=91, y=108, color=0x000, font=FONT_UNICODE_24, parent=None)
      
      label0.set_text_font(FONT_UNICODE_24)
      label0.set_text(str('γƒ†γ‚Ήγƒˆγ‚±γƒΌγ‚Ή'))
      wait(5)
      label0.set_text('γƒŸγƒ‰γƒ«γƒ»γƒ‰γƒƒγƒˆ')
      
      1. γƒ†γ‚Ήγƒˆγ‚±γƒΌγ‚Ή => γƒ†γ‚Ήγƒˆγ‚±γ‚Ή" ["γƒΌ" (0x30FC; Katakana-Hiragana Prolonged Sound Mark) is missing ]
      2. γƒŸγƒ‰γƒ«γƒ»γƒ‰γƒƒγƒˆ => γƒŸγƒ‰γƒ«ε‹Ήγƒ‰γƒƒγƒˆ ["・" (0x30FB; Katakana Middle Dot) is replaced with a wrong character (some character like "ε‹Ή" but a bit different)]

      Without these two characters("γƒΌ" and "・"), we have extreme difficulty in using Japanese text in a label.

      Here lists my environment.

      • Device: M5Stack core2
      • firmware: v1.8.1 (via M5Burner)
      • UIFlow: v1.8.1

      wingtiger

      Environment: Windows10 (Ryzen 7 2700X) + UiFlow Beta / arduino

      1 Reply Last reply Reply Quote 0
      • W
        wingtiger
        last edited by

        I checked this on M5Stack Basic, and these two characters (0x30FC, and 0x30FB) were shown properly.

        So this is the problem occurs only on core2.
        v1.8.3 for core2 still has this problem, and I strongly wish It would soon be fixed.

        wingtiger

        Environment: Windows10 (Ryzen 7 2700X) + UiFlow Beta / arduino

        1 Reply Last reply Reply Quote 0
        • First post
          Last post