I have a JSON settings file that has the settings of my script, a part of the settings When it is being read in variable When I try to use it in To fix this now I do this: ... but I am thinking that there is no way, I can read this file in the first place, it will mean that I do Have not been done for? Edit: The settings file is read as: No, JSON uses standard Unicode whole (this is a good thing P> HTML> csv.writer () < / Code> is the delimiter for.
settings and give it to me it:
{'delimiter': u ','}
csv.writer (out, ** settings) I get the following error:
TypeError: "delimiter" 1-character string Should be .
Settings ["delimiter"] = Settings ["Delimiter"]. Encoded ("UTF-8")
Settings with open (file): Details = json.load ( Settings,
No comments:
Post a Comment