Python Forum
with source file in UTF-8 you have full UNICODE support
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
with source file in UTF-8 you have full UNICODE support
#1
Hello!
This is only a message for my solved problem to get UNICODE support.

With Windows I code for Python 3.7 with the tool PythonWin which comes with the package pywin32

I had the problem with strings having characters of the upper area of latin-1 upper range .e.g. ß

After hours I had the idea to
convert the python script file to UTF-8 with Windows Notepad.

Suddenly with the so converted source file (encoded in UTF-8)
I had full UNICODE support.

Hope this helps other
Erhy
Reply
#2
Python 3 has full Unicode support built in, I'm not sure I understand the original problem, nor the solution.
Reply
#3
Your editor 'PythonWin' should save it as utf-8
Reply
#4
(Jan-06-2019, 10:31 AM)Axel_Erfurt Wrote: Your editor 'PythonWin' should save it as utf-8
in my experience PythonWin stores script file as opened belonging encoding
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make a test data file for the full length of definition? MDRI 6 3,538 Apr-16-2021, 01:47 AM
Last Post: MDRI
  How to append a tuple full of records to a dbf file in Python? DarkCoder2020 4 3,722 May-29-2020, 02:40 PM
Last Post: DarkCoder2020
  How to get file name without the full path details and without extension aruncom2006 1 5,912 Jan-13-2020, 07:37 AM
Last Post: Larz60+
  How to search full path of specified file SriRajesh 3 2,394 Dec-14-2019, 04:52 PM
Last Post: Gribouillis
  How to get the file path and full file name SriMekala 8 5,093 May-19-2019, 07:40 PM
Last Post: perfringo
  Why the file is not downloaded in full with this script? Jacklops 2 2,692 Jan-07-2019, 09:33 AM
Last Post: DeaD_EyE
  Uncanny line of code in Torchat source file pkm 2 2,683 Jan-05-2019, 04:01 PM
Last Post: pkm
  clean unicode string to contain only characters from some unicode blocks gmarcon 2 3,971 Nov-23-2018, 09:17 PM
Last Post: Gribouillis
  including big file contents in python source Skaperen 2 2,623 Nov-07-2018, 09:39 PM
Last Post: Skaperen
  finding own python source file to read it Skaperen 3 3,009 Aug-27-2018, 11:23 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020