Operating System - HP-UX
1753473 Members
4706 Online
108794 Solutions
New Discussion

Linux option "-o iocharset=utf8" also available in HP UX for mount?

 
Mat_Name
Occasional Contributor

Linux option "-o iocharset=utf8" also available in HP UX for mount?

Hi there,

 

we're using HP UX 11.31. On nsf share we've got couple of files included special character in filename but these special character are shown as hieroglyphics if we mount share to unix and linux.

 

Linux we could use "-o iocharset=utf8" in fstab / mount. Then we see special character. Everything is ok ;-)

HP UX doesn't provide "-o iocharset=utf8" and we can't see special character. Thats not good ;-(

 

Is there one similar option like "-o iocharset=utf8" for HP Unix (mount & fstab) available?

Setting LANG variables was not helpful.

 

Best wishes

4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Linux option "-o iocharset=utf8" also available in HP-UX for mount?

>Setting LANG variables was not helpful.

 

What did you set it to?  What locale are these filenames?

What does "ll -b" show for these files?

Bill Hassell
Honored Contributor

Re: Linux option "-o iocharset=utf8" also available in HP UX for mount?

Directories and files should have only the standard ASCII displayable characters. while random characters can be used for these names, the issue is with the displaying of the string, not the filename itself. Your terminal emulator will interpret these codes but trying to translate these into something that matches various terminal screens is a nightmare. And some of the characters may be interpreted by the shell (ie, ; \ { } [ ], etc). As Dennis states, use the ll command with -b to show non-standard characters and then rename the file or directory.

 

NFS means you are connecting to a another system (perhaps Windows) which has different rules about filenames. The best rule to follow is to keep special characters out of file and directory names.



Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: Linux option "-o iocharset=utf8" also available in HP-UX for mount?

>The best rule to follow is to keep special characters out of file and directory names.

 

Especially evil spaces.  :-)

Bill Hassell
Honored Contributor

Re: Linux option "-o iocharset=utf8" also available in HP-UX for mount?

>> Especially evil spaces.  :-)

 

And even more evil: backspace characters.   :-(



Bill Hassell, sysadmin