You are not logged in.
Hi,
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 root@mni.jes.in.th:/kaitag/obj/usr/src/sys/JOTAWSKI amd64
English is not my native language; please excuse typing errors.
Regards,
jotawski
Offline
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 ?
Offline
Hi,
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 ?
Regards,
jotawski
Offline
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
locale
or simpler
echo $LANG
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)
Offline
Hi,
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
C
# locale
LANG=C
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
once again, many thanks for your times and I will have a look at your provided links.
Regards,
jotawski
Offline
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 :-)
Offline
Hi,
Oh yes, that works fine.
Once more time, thank you very much indeed.
Regards,
jotawski
Offline
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 535.16 KiB (Peak: 536.01 KiB) ]