DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

The utf8 string is broken in the title of create_viewport.

Open wwforever opened this issue 2 years ago • 1 comments

Version of Dear PyGui

Version: 1.4.0 Operating System: Windows 10

My Issue/Question

Confirmed that it works normally on MacOS. Strings are broken in Windows 10.

Screenshots/Video

image

Standalone, minimal, complete and verifiable example

# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg

dpg.create_context()
with dpg.font_registry():
    with dpg.font(f'./asset/font/NanumGothicCoding.ttf', 12) as font1:
        dpg.add_font_range_hint(dpg.mvFontRangeHint_Default)
        dpg.add_font_range_hint(dpg.mvFontRangeHint_Korean)

dpg.bind_font(font1)
dpg.create_viewport(title='title not working. 타이틀은 안 됨.', width=600, height=300)

with dpg.window(label="Example Window", width=200):
    dpg.add_text("Hello, world")
    dpg.add_button(label="Save")
    dpg.add_input_text(label="string", default_value="Quick brown fox")
    dpg.add_slider_float(label="float", default_value=0.273, max_value=1)
    dpg.add_text('text is ok. 텍스트는 잘 됨.')

dpg.show_metrics()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

wwforever avatar Mar 25 '22 07:03 wwforever

See #1760 for possible fix of the encoding.

sedenka avatar Aug 26 '22 10:08 sedenka

Fix suggested, closing issue.

bandit-masked avatar Jan 05 '23 00:01 bandit-masked