Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unicode problem
#1
I need to update one system with data from another. The source file uses utf-8 encoding and the destination system requires iso-8859-1 encoding. No problem, I open the files I am reading with utf-8 encoding and the files I am writing to with iso-8859-1 encoding. This worked fine until recently when I started getting unicode errors when writing. The offending string was 'Birleşik Krallık’.

It seems that iso-8859-1 cannot recognise all of the characters that are recognised by utf-8. This cannot be a new issue and I am sure there must be a solution out there. Is there some way I can make my program bulletproof? For example is there a table somewhere that can convert characters that iso-8859-1 cannot recognise into ones they can?

I am new to Unicode so a simple reply would be much appreciated. Many thanks.
Reply


Messages In This Thread
Unicode problem - by Hobson - Feb-10-2020, 10:47 AM
RE: Unicode problem - by snippsat - Feb-10-2020, 11:28 AM
RE: Unicode problem - by Hobson - Feb-10-2020, 12:22 PM
RE: Unicode problem - by snippsat - Feb-10-2020, 01:51 PM
RE: Unicode problem - by Hobson - Feb-10-2020, 02:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unicode string index problem luoheng 6 2,939 Nov-23-2019, 03:04 PM
Last Post: luoheng
  clean unicode string to contain only characters from some unicode blocks gmarcon 2 3,916 Nov-23-2018, 09:17 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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