You are not logged in.

#1 2008-09-05 22:14:28

Scott M
Member
Registered: 2008-09-05
Posts: 6

[SOLVED] Can't save UTF-8 encoded source file in IDE

I had a problem where I could not save a c++ source file from anjuta using the gtksourceview plugin, but could using the scintilla plugin.  I would get an error message with "invalid byte sequence in conversion input" in the text.  Eclipse CDT also would not save a modified file with a similar error message.

The fix was to uncomment the proper lines in the file /etc/locale.gen for my locale and run locale-gen as described in the Archlinux wiki article "Configuring locales."

I did not find any help for this problem using internet searches, so I thought I would document it here.  Just in case someone else fails to setup their locale and runs into the same trouble.

Offline

Board footer

Powered by FluxBB