LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-10-2008, 05:37 PM   #1
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Bluefish not showing hidden (?) non-ASCII characters?


I'm editing an HTML file in Bluefish and I use the text plug-‏‏in, quoted exactly here from the editor, and in Konqueror it's showing up as plug-ā€¸ā€¸in, with boxes where the ¸ are. I know I'm using a proper - because I keep typing it in, but the only way to fix the apparent problem seems to be deleting g-i and retyping it. This hasn't been a problem with viewing in Firefox, which probably just ignores it, so I haven't noticed until now. Encoding is UTF-8. This is showing up every place I use -. I originally wrote a lot of the text in OpenOffice.org Writer and pasted later directly into Bluefish. I guess I just assumed that it would at least put a placeholder where an unprintable character was. Sure enough, Kate shows the extra characters. Anyone know how to get rid of them, or at least see them in Bluefish? Can sed handle upper-half characters if I use hex codes? Thanks.
ta0kira

Last edited by ta0kira; 04-10-2008 at 05:47 PM.
 
Old 04-11-2008, 05:45 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Perhaps something was wrong with your X input method (or since you are using Bluefish, your GTK input method).

Btw, GNU sed 4.1.5 works as expected (at least on my machine). E.g.,
Code:
sed -ie 's/ā€¸//g' test.html
removes all those garbage characters.
 
Old 04-12-2008, 02:28 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Original Poster
Rep: Reputation: Disabled
Thanks. You must have used a script for that, unless Konsole just sucks. It will only allow pasting of ā and not the other two. Either way, I took care of it in Kate. Surprisingly, I had about 500 instances of that particular set of three characters. Pretty much everywhere - showed up in the Writer document.

It could also be that GTK and Klipper don't mix well, but that doesn't explain why Bluefish fails to show them. Pasting those characters into Bluefish makes them show up, but it probably does some sort of translation. If you put those three characters into a UTF-8 file with Kate then open it with Bluefish they won't show up. I've reported it as a Bluefish bug.
ta0kira
 
Old 04-12-2008, 03:52 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by ta0kira View Post
You must have used a script for that, unless Konsole just sucks. It will only allow pasting of ā and not the other two.
I just pasted directly into an xterm. The ¸ character does not show up, but it is still “there” on the commandline, and expected results occur.
 
  


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
mouse keys and non-ascii characters elyk Slackware 8 12-02-2005 12:46 PM
typing high-ascii characters gerrym Linux - Newbie 1 08-12-2004 12:38 AM
Extended ASCII characters in UNIX MatSzor Programming 5 05-15-2004 09:57 PM
ascii characters lakshman Linux - General 1 03-14-2003 11:28 AM
Deleting non ASCII characters Thinkgeekness Linux - Networking 4 03-04-2003 01:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:07 AM.

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
Open Source Consulting | Domain Registration