Skip to content

Commit

Permalink
encoding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
glebb committed Nov 1, 2021
1 parent 5c334b7 commit d499c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rocksmithconvert/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def _do_conversion(self, filename: str, output_directory: str, targetPlatform: s
if filepath.endswith('aggregategraph.nt'):
data = self._convert(data.decode(), mac2pc)
if mac2pc:
data = data.replace('macos', 'dx9').encode('ascii')
data = data.replace('macos', 'dx9').encode('utf8')
else:
data = data.replace('dx9', 'macos').encode('ascii')
data = data.replace('dx9', 'macos').encode('utf8')
new_content[self._convert(filepath, mac2pc)] = data
if use_shortnames and not short_name and filepath.endswith('.hsan'):
short_name = self._create_short_name(tail, data)
Expand Down

0 comments on commit d499c1b

Please sign in to comment.