I am using mousepad since it is quite easy and simple enough for me. On saving a new file, I need to specify UTF-8 for a locale since mousepad set this value as ASCII and produce error if I do not change from this value.
Is there some way to set the default locale as UTF-8, for example, in saving file ?
And here is the environment of my machine:-
[mni] ~% uname -a
FreeBSD mni.jes.in.th 9.0-STABLE FreeBSD 9.0-STABLE #4: Wed Mar 28 09:07:52 ICT 2012 email@example.com:/kaitag/obj/usr/src/sys/JOTAWSKI amd64
English is not my native language; please excuse typing errors.
I use leafpad, not mousepad, but anyway it uses by default UTF-8 since my locale is en_US.UTF-8 ...
What's your locale ?
Thank you so much for your time, I do not set for any particular locale. Most of the time, I use English alphabet for writing program so that UTF-8 should be fine but that is not true.
Do I have to explicitly set locale too ?
you are using a locale even if you have not explicitly chosen one :-)
Maybe your locale defaults to ascii charset...
On my system (xubuntu) I can see locale with
Tried googling this issue, and it seems related to locale as I supposed, for example see https://bbs.archlinux.org/viewtopic.php?id=58015 ...
Anyway, where to set system-wide and user locale may vary. I see you're using freebsd, so maybe things are different :-)
Last edited by paolo321 (2012-04-07 10:21:01)
you are right, I am using it already and here are some of values which I wonder if mousepad will have a look for or not
# echo $LANG
once again, many thanks for your times and I will have a look at your provided links.
C locale is something like a "default fallback locale" , that's why mousepad uses ascii ...
If you set LANG to en_US.UTF-8 it probably will work correctly; you can test it running mousepad from a shell where you have manually set LANG that way!
If this works, please mark thread as solved to help people googling this issue :-)
Oh yes, that works fine.
Once more time, thank you very much indeed.