Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I've a question, I'm using renpy.file to read a .csvfile (made under windows), but at the end I see a strange character.
When I use fileData.split("\n") it functions normally, but the strange character is still printed when I print the lines.
So my question is: What is this character and how to get rid of it? (as I need to get rid of it to be able to parse the files correctly).
fileList=renpy.list_files()
msg=""
for fileAndPath in fileList:
if (fileAndPath[:9]=="data/map/"):
fileData=renpy.file(fileAndPath).read().decode('utf-8')
msg+=fileData
narrator(msg)