Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut to file character encoding issue creates empty file #146

Open
akaleeroy opened this issue Feb 23, 2016 · 0 comments
Open

Cut to file character encoding issue creates empty file #146

akaleeroy opened this issue Feb 23, 2016 · 0 comments

Comments

@akaleeroy
Copy link

I have UTF8 .csv file and Cut to file doesn't work.

From the console:

Traceback (most recent call last):
  File "advanced_new_file.commands.command_base in \Data\Installed Packages\AdvancedNewFile.sublime-package", line 315, in on_done
  File "advanced_new_file.commands.command_base in \Data\Installed Packages\AdvancedNewFile.sublime-package", line 344, in entered_filename
  File "advanced_new_file.commands.cut_to_file in \Data\Installed Packages\AdvancedNewFile.sublime-package", line 47, in entered_file_action
  File "advanced_new_file.commands.cut_to_file in \Data\Installed Packages\AdvancedNewFile.sublime-package", line 71, in _open_and_add_content_to_file
  File "./encodings/cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\u021b' in position 20: character maps to <undefined>

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant