LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-04-2012, 11:18 AM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Rep: Reputation: 40
Special characters display on windows xp and my lovely slackware 12.1


Hi guys,

currently I'm using slackware ver 12.1.

My work requires me to use windows therefore i happen to encounter this problem which baffle me for some time.

When i use notepad, notepad++ or wordpad to open my file, there is a special character which displays as a '?'

However when i open up the same file on my slackware using vi editor and kwrite, it display as an empty space? I tried :set list in VI to display special characters, but it still displays as space.

Anybody know why this happens? What can caused this issue?
For both platforms, what does it use to read the characters in a file?

Thanks all..
 
Old 01-04-2012, 12:25 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,058

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Hi there,

Quote:
Originally Posted by vitalstrike82 View Post
When i use notepad, notepad++ or wordpad to open my file, there is a special character which displays as a '?'

However when i open up the same file on my slackware using vi editor and kwrite, it display as an empty space? I tried :set list in VI to display special characters, but it still displays as space.
sounds like a UTF-8 encoding, or rather decoding problem. What byte sequence is actually stored in the file? Is that strange character at the beginning or somewhere in the middle? It could be a Unicode character for which Windows hasn't a shape to display, so it shows a question mark as a replacement char.

[X] Doc CPU
 
1 members found this post helpful.
Old 01-04-2012, 09:17 PM   #3
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Original Poster
Rep: Reputation: 40
The byte sequence is UTF 8. The ? character displays in the middle of a sentence. I think i know whats the problem.

My windows can read chinese characters. Therefore it display a ? when i open that file
My slackware cannot read. Therefore it display as a space.

Thanks for your help
 
Old 01-13-2012, 12:04 PM   #4
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Original Poster
Rep: Reputation: 40
Hi all,

I have a file with this special character ''. I 1 machine of mine which is able to display chinese characters, this character does not display on my screen

However when i open on my slackware 12.1 machine, it display as ''. May i know what type of character set is set by default in slackware 12.1? is it ascii?

Thanks all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Putty doesn't display special characters Felipe Linux - Software 4 08-13-2008 09:09 AM
Special Characters SimeonV Suse/Novell 14 07-07-2006 02:29 PM
Special characters consty Programming 3 08-07-2005 06:53 AM
New system, fresh install, lovely display errors ;_; R00ts Debian 4 03-09-2005 03:40 AM
using special characters one_ro Mandriva 5 11-04-2004 09:52 AM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration