Skip to content

Commit

Permalink
fix: properly encode strings
Browse files Browse the repository at this point in the history
See #90
  • Loading branch information
rcarriga committed Jan 3, 2022
1 parent 13cb0a9 commit 6ae08af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rplugin/python3/ultest/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BasePosition:

def __str__(self):
props = self.dict()
props["name"] = [int(char) for char in self.name.encode()]
props["name"] = [ord(char) for char in self.name]
return json.dumps(props)

def dict(self):
Expand Down

0 comments on commit 6ae08af

Please sign in to comment.