DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Bug report : Impossible to show € correctly

Open SoftTechPy2024 opened this issue 9 months ago • 3 comments

DearPyGui 2.0.0 Windows 11

Unable to add the unicode character '€'

I add € in my string to show it on UI. But, it shown an ?.

Here is the code to reproduce error :

import dearpygui.dearpygui as dpg

dpg.create_context() dpg.create_viewport(title="Title")

with dpg.window(): dpg.add_text("€")

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

Please consider to resolve this issue quickly if is possible.

SoftTechPy2024 avatar Mar 25 '25 17:03 SoftTechPy2024

Please read the docs on how to use non-ASCII characters. The euro sign is U+20AC, which is outside of ASCII range and thus not loaded by default. You need to specify it explicitly.

v-ein avatar Mar 25 '25 19:03 v-ein

Thank you so much for your quick answer. I will verify later.

SoftTechPy2024 avatar Mar 25 '25 20:03 SoftTechPy2024

Please don't click the link in the notification you received for the previous comment. It's a scam.

v-ein avatar Apr 16 '25 18:04 v-ein