Python Forum
Read file Into array with just $0d as Newline
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read file Into array with just $0d as Newline
#6
I was testing with this the Evening and it seems that i need to Convert the messy foreign c64 Chars to UTF before processing by the Script.

So my thought was to parse the whole textfile and replace the utf-8 unknown Chars (bytes) with the correct utf-8 Chars

I wanted to create a conversation table which would convert e.g.
193 ($c1) to 64 ($41)
194 ($c2) to 65 ($42)
.....
97 ($61) to 64 ($41)
98 ($62) to 65 ($42)

should this be done best with a external conversation table or parsing the file byte by byte and use some algo that converts ?
Reply


Messages In This Thread
RE: Read file Into array with just $0d as Newline - by lastyle - Feb-03-2020, 11:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pandas read csv file in 'date/time' chunks MorganSamage 4 1,717 Feb-13-2023, 11:24 AM
Last Post: MorganSamage
  Can't read text file with pandas zinho 6 12,151 May-24-2020, 06:13 AM
Last Post: azajali43
  Read json array data by pandas vipinct 0 1,960 Apr-13-2020, 02:24 PM
Last Post: vipinct
  Read csv file from Yahoo Finance ian 3 4,671 Sep-22-2019, 06:47 AM
Last Post: ndc85430
  read complex file with both pandas and not Diedro 1 2,906 Jan-29-2019, 05:26 PM
Last Post: Larz60+
  read from txt. file in certain manner SchroedingersLion 13 7,496 Aug-07-2018, 04:14 PM
Last Post: SchroedingersLion
  save 2d array to file and load back ian 3 18,306 May-18-2018, 05:00 AM
Last Post: scidam
  loading a 3D array from a bin file Mark3232 1 4,729 May-04-2018, 11:36 AM
Last Post: j.crater
  access a very large file? As an array or as a dataframe? Angelika 5 4,944 May-18-2017, 08:15 AM
Last Post: Angelika
  Need help in framing data read from wav file Vishweshkumar 1 3,686 Feb-10-2017, 01:45 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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