Python Forum
Help ANSI character and python...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help ANSI character and python...
#1
Hello, I have a text file that separates my data with "alt + 249" character (middle dot)
I figured out that python is a racist towards ANSI in a hard way and after an hour I still can't find a way to bypass this nightmare...

Please anyone, if you read a line that has this character, how to detect it?? Cry
Reply
#2
I think the easiest fix would be to use the find/replace feature of the text editor to change that character to something else like a "~" or other character that isn't found in the file.
Reply
#3
I guess I will do that Idea
Thanks for the idea ^^
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python rule about the space character surrounding the equal sign ineuw 10 1,614 Sep-21-2023, 09:17 AM
Last Post: ineuw
  How do I handle escape character in parameter arguments in Python? JKR 6 1,133 Sep-12-2023, 03:00 AM
Last Post: Apoed2023
  ANSI not working for change of text colors BliepMonster 10 3,349 Nov-10-2022, 09:28 AM
Last Post: BliepMonster
  [solved] unexpected character after line continuation character paul18fr 4 3,393 Jun-22-2021, 03:22 PM
Last Post: deanhystad
  python error: bad character range \|-t at position 12 faustineaiden 0 3,682 May-28-2021, 09:38 AM
Last Post: faustineaiden
  Reducing JSON character count in Python for a Twitter Bot johnmitchell85 2 51,484 Apr-28-2021, 06:08 PM
Last Post: johnmitchell85
  SyntaxError: unexpected character after line continuation character siteshkumar 2 3,166 Jul-13-2020, 07:05 PM
Last Post: snippsat
  how can i handle "expected a character " type error , when I input no character vivekagrey 2 2,735 Jan-05-2020, 11:50 AM
Last Post: vivekagrey
  Replace changing string including uppercase character with lowercase character silfer 11 6,192 Mar-25-2019, 12:54 PM
Last Post: silfer
  Converting from HEX to ANSI Blackklegend 5 7,264 Oct-24-2018, 02:28 PM
Last Post: Blackklegend

Forum Jump:

User Panel Messages

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