in reply to Re: How to display/accept unicode chars in a tk entry widget
in thread How to display/accept unicode chars in a tk entry widget

Thanks for your response

I use charnames when I create the string myself, but in this case the string was a filename which was read from a directory.

  • Comment on Re^2: How to display/accept unicode chars in a tk entry widget

Replies are listed 'Best First'.
Re^3: How to display/accept unicode chars in a tk entry widget
by BillKSmith (Monsignor) on Jul 01, 2023 at 15:28 UTC
    The pragma utf8 fixes your example, but I would not expect it to help with a file name that you read. In that case, you probably have to decode the file name.
    Bill