Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-12-2008, 12:03 AM
|
#1
|
|
Member
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609
Rep:
|
How to change character sets from iso-8859-1 to UTF-8?
I would appreciate the wisdom of some many slackware experts.
Now for the problem.
I originally started a similar thread on the networking forum only to discover that it is an entirely different issue.
Basically, I am trying to print through the printer on my wife's xp box on our lan.
I think I have cups and samba set up correctly. However when I tried to print, the cups log shows that I got the following error:
Quote:
E [10/Jun/2008:22:09:04 -0700] CUPS-Add-Modify-Printer: Unauthorized
I [10/Jun/2008:22:09:04 -0700] Setting momhp device-uri to "smb://mom/Printer2" (was "smb://mom/Printer2".)
I [10/Jun/2008:22:09:04 -0700] Saving printers.conf...
I [10/Jun/2008:22:09:04 -0700] Printer "momhp" modified by "root".
I [10/Jun/2008:22:09:04 -0700] Saving printers.conf...
I [10/Jun/2008:22:09:04 -0700] Printer "momhp" modified by "root".
E [10/Jun/2008:22:24:01 -0700] Unsupported character set "iso-8859-1"!
E [10/Jun/2008:22:24:01 -0700] Unsupported character set "iso-8859-1"!
E [10/Jun/2008:22:24:01 -0700] Unsupported character set "iso-8859-1"!
E [10/Jun/2008:22:24:01 -0700] Unsupported character set "iso-8859-1"!
|
So, having searched far and wide, there seems to be a bug reported with cups. See the following links:
http://daniel.mateos.cc/
https://bugs.launchpad.net/ubuntu/+s...ys/+bug/203944
So from what I understand, there is a work around. That is to use the utf-8 character set instead of the iso-8859-1 as suggested by this link.
How do I change from iso-8859-1 to utf-8?
Is it possible to do it only in cups and samba?
|
|
|
|
06-12-2008, 02:37 AM
|
#2
|
|
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,439
Rep:
|
This sounds like stuff that was posted in the CHANGES_AND_HINTS.TXT. Check this out first and let me know if it helps
Quote:
|
Originally Posted by CHANGES_AND_HINTS.TXT
There is a minor problem with the HPLIP and CUPS versions in Slackware 12.1;
hp-toolbox will not work unless LC_ALL is set to a UTF8 locale.
An easy workaround is to start it with "LC_ALL=$LANG.UTF8 hp-toolbox" if
you're not using a UTF8 locale. Also, your user account must be a member
of the "lp" group for hp-toolbox to work properly, and to use the scanner
portion of some (all?) HP print/scan/copy units, you'll need to be a member
of the "lp" group. This is due to the fact that hplip's udev rules set
the device with group "lp" ownership.
|
Add alias for hp-toolbox to either /etc/profile (system-wide) or ~/.profile (user specific)
Code:
alias hp-toolbox='LC_ALL=$LANG.UTF8 hp-toolbox'
Add user to lp group
You could also look into hacking the rc scripts for cups and samba and add a LANG=en_US.UTF-8 in front of the call to /usr/sbin/cupsd, for example.
|
|
|
|
06-13-2008, 11:20 PM
|
#3
|
|
Member
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609
Original Poster
Rep:
|
So how would I do that for cups and samba?
Thanks
okos
|
|
|
|
06-13-2008, 11:35 PM
|
#4
|
|
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,439
Rep:
|
Quote:
Originally Posted by okos
So how would I do that for cups and samba?
Thanks
okos
|
I have never tried this before. One way, like I said in my last post, might be to hack the init scripts. If you have cupsd called like
Code:
LANG=en_US.UTF-8 /usr/sbin/cupsd
it might do set the language. Something similar could be done for samba as well.
It would be better if you could simply set this in the cups and samba configs, however.
/etc/cups/cupsd.conf, according to man cupsd.conf has
Code:
DefaultLanguage locale
that can be set.
Similarly, I would poke around man smb.conf and see what you can come up with.
|
|
|
|
06-15-2008, 05:48 PM
|
#5
|
|
Member
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609
Original Poster
Rep:
|
I tried googiling cups and utf-8, I found that cups can handle many different character sets but have not found anything on setting utf-8 as the default character set.
Quote:
Originally Posted by shadowsnipes
I have never tried this before. One way, like I said in my last post, might be to hack the init scripts. If you have cupsd called like
Code:
LANG=en_US.UTF-8 /usr/sbin/cupsd
it might do set the language. Something similar could be done for samba as well.
|
I will give it a try.
Quote:
It would be better if you could simply set this in the cups and samba configs, however.
/etc/cups/cupsd.conf, according to man cupsd.conf has
Code:
DefaultLanguage locale
that can be set.
|
I will give the a try also.
Quote:
|
Similarly, I would poke around man smb.conf and see what you can come up with.
|
man smb.conf has well over 1000 lines of info.
I am not sure if I am using the command properly but I tried:
apropos utf-8 | grep samba
and
apropos utf-8 | grep smb
with zero results.
Okos
|
|
|
|
06-15-2008, 08:20 PM
|
#6
|
|
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,439
Rep:
|
Quote:
Originally Posted by okos
man smb.conf has well over 1000 lines of info.
I am not sure if I am using the command properly but I tried:
apropos utf-8 | grep samba
and
apropos utf-8 | grep smb
with zero results.
Okos
|
When you are in the man page try typing '/', typing in 'lang' or 'utf', and then hitting ENTER. From there 'n' goes to next instance and SHIFT+'n' goes to the previous instance.
|
|
|
|
06-18-2008, 05:49 PM
|
#7
|
|
Member
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609
Original Poster
Rep:
|
After spending two weeks of evenings trying to resolve the problem without success, I decided just to to do a temporary work around until I am able to get a new printer for myself.
I have xp on virtual box. VB enables you to share folders between the two os. I am easily able to move the doc from slack to xp to print on wife's printer through lan. That was a mouth full of words!
However, I did learn something crucial. In the past I could not get the HP toolbox to work. There was no one added to the lp group. I add myself to lp and now it works
Thanks for your help.
okos
|
|
|
|
06-26-2008, 02:27 PM
|
#8
|
|
LQ Newbie
Registered: Aug 2003
Distribution: Slackware
Posts: 7
Rep:
|
Thanks shadowsnipes,
modifying the rc.samba and rc.cups scripts to tell the daemons
LANG=en_US.UTF-8 /usr/sbin/smbd -D and
LANG=en_US.UTF-8 /usr/sbin/cupsd, respectively, worked for me.
I do not use the HP toolbox, so I can't comment on that.
janve
Last edited by janve; 06-26-2008 at 02:34 PM.
|
|
|
|
06-26-2008, 03:18 PM
|
#9
|
|
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,439
Rep:
|
Quote:
Originally Posted by janve
Thanks shadowsnipes,
modifying the rc.samba and rc.cups scripts to tell the daemons
LANG=en_US.UTF-8 /usr/sbin/smbd -D and
LANG=en_US.UTF-8 /usr/sbin/cupsd, respectively, worked for me.
I do not use the HP toolbox, so I can't comment on that.
janve
|
Glad to know it worked! 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:00 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|