Ubuntu :: Delete All ASCII Characters In File - Leave Chinese Characters Only
Jul 8, 2011
What command could I use in terminal to delete all ASCII characters? That is, delete a-z, A-Z, 0-9, and all punctuation? I have a file containing Chinese characters, and I want to remove everything else and leave just the Chinese.
I can use grep to leave only the lines that have Chinese in them, but this still leaves a lot of non-Chinese stuff on those lines. Does anyone know how I could actually remove everything that isn't Chinese?
View 4 Replies
ADVERTISEMENT
Jan 27, 2011
Using Fluxbox, have tried this in XFCE and KDE. Chinese characters display properly in whatever browser I use online. I do need to see some in the file manager and this is not working.
I have installed the following chinese display files from Slack -
No results so far.
View 12 Replies
View Related
Mar 1, 2011
I just found out that I did mistake.I transfer 1 file into the Ubuntu Linux,but that File has a strange character. Take a look at the picture screenshot taken.free image hostingExplanation: 1) The file name is unknown, take a look at the WinRAR Archive (left window)2) The file name recognized in Ubuntu without any name, thus it appeared as Empty (right window: putty program). And via Command Line Interface, it appeared as Question Marks.
View 5 Replies
View Related
Feb 20, 2010
Say you wanted to write a bash script for "hello world" but the characters were shifted up or down by one.
How would one go about this?
Example:
Code:
Code:
View 5 Replies
View Related
Jun 8, 2011
I am working on a project where I am dialing out of a modem!! Old stuff, ya, but the modem allows my device send info from remote sites from my datibase through a phone line so that this IT departments dont have to worry my device being a security issue on their networks.
Any way, the modem I'm using isn't incredibly well designed, and when a certain ascii char is read by the modem, it reads it as an EOF indicator. It is also important that the files I send are compressed.
My question is: Does anyone know of a compression format that allows ME to dissallow IT's use of certain ascii chars?
just as an illustration:
Device --------> Modem ---------> Off-site
and the Modem stops talking to the device when a certain char is passed to it.
View 1 Replies
View Related
Apr 6, 2010
How can I use extended ascii characters, like ALT + 2 + 0 + 0 for instance? I'm using some of those characters for my passwords for online accounts made under MS Windows and it seams I'm unable to use them in Slackware 13. For instance: if I type ALT+2+0+0 in Pidgin there is no character displayed and if I type in the Terminal the same thing, it will replace my shell prompter (sasser@HOSTA:~$) with (arg: 200):
sasser@HOSTA:~$
(arg: 200)
View 2 Replies
View Related
Mar 8, 2010
How can I filter ASCII quotes( ' ) and double quotes ( " ) so that I can replace them with the UTF-8 equivalent?If I copy text from a Word Document(ASCII), and upload it to a web page with PHP. The Database(UTF-8) will replace these racters with incorrect character(s).I need some function that will replace these characters but I don't know how to differentiate the ASCII quotes and the UTF-8 Quotes without (somehow) converting the string to hex, then preg_replace'ing the hex code for the symbol.
View 8 Replies
View Related
Apr 26, 2010
Well, I have a web application in Linux server. All my Java codes are there. FYI, whenever user entered non-ASCII characters(e.g. ∞,�,�) in a text field in my web application, and I check the log of my Java code in Linux server, it returns weird characters.
Suppose user entered ∞ in the text field. I should get ∞ in my log too. However, I got weird characters in return.
View 14 Replies
View Related
Mar 9, 2011
i want to print all ASCII characters kind of like a table, but i really don't have an idea of how to do it, i don't know if there is a built-in method or something to accomplish this, if not
View 2 Replies
View Related
Jun 30, 2010
I have no problems displaying Chinese characters in IE in Windows and I just switched over to Ubuntu.
I have gone to view-> Character Encoding and set it to simpified Chinese but the screenshot still looks like the attachment.
I see only squares. What should I do?
View 8 Replies
View Related
Mar 19, 2016
This is to do with accessing Dos era CD rom under Linux.The characters in directory and file titles appear as "chinese".As I know that I've loaded and installed programs from these CD roms onto a Windows 2000 machine, I'm wondering why I can not read the file names now. They are definitely in English.I've research and found the mount -o "characterset" but I shouldn't need to do that as they are not foreign language CD roms.The only other thing I can think off is that they are both degraded, but I would not have expected that of commercial CD roms.
View 5 Replies
View Related
Jul 21, 2009
I update system today. Just before , everything is normal. Once it finished , I found that my KDE can't display some characters. I am a Chinese user. The English words are normal,. Just some Chinese characters can't be displayed. When I refreshed the browser, they can be displayed again but some of them are font default and some of them are font Yahei. And they are displayed messed together. It is not pretty. AND it is not only in browser, anywhere displayed Chinese characters looks the same as browser. How to change them back to default font as one font not two types of font messed together?
View 1 Replies
View Related
Jan 16, 2010
Banshee (Version 1.5.2) doesn't seem to support cover art for tracks that include non ascii characters in any way. All manual methods that work with ascii tracks failed (folder.jpg in album folder, copying appropriately named jpg in ~/.cache/album-art, embedding jpg in mp3 metadata). This is really quite a drawback for users who don't have an English-only music collection. Is there any workaround or bugfix that I missed or do I have to go back to Rhythmbox to have non-English cover art?
View 1 Replies
View Related
Feb 28, 2010
Is there a way to get Document Viewer to display Chinese characters in a pdf? Adobe Viewer does but I would prefer to avoid proprietary software. I cannot get either Document Viewer or Okular to properly show Chinese characters in pdf documents downloaded from my college class homepage.
I have all the Chinese language support files, bells and whistles (both traditional and simplified) loaded and operational. When I create a Chinese document in OO Writer and save it as a pdf, both DocViewer and Okular display the the Chinese characters properly. I just cannot get either DocViewer or Okular to display Chinese in pdfs that are downloaded from the website of my course's online textbook/workbook.
Running 9.10 full boat version on an EEE 1000HD netbook.
View 2 Replies
View Related
Feb 6, 2010
My installation of slakware linux 12.0 seemed Ok, I can see the beautiful KDE Window and I can also read Chinese homepages by Foxfire browser. But I don't know how I can input Chinese characters. I in fact installed everything from the DVD-package. It appeared that SCIM was installed, and I don't know if I have CLE.
View 1 Replies
View Related
Mar 24, 2010
I am a starter ,though there are lots of software installed almost for everything, I found that it is uneasy for a Chinese learner to use it.Almost every PC user prefer sip to linux around me. it is likely that there is still a long way to go.but I have every confidence in myself! one of my question is:Why my pdf reader does not support Chinese characters?What should I do to improve this situation?
View 6 Replies
View Related
Jan 17, 2011
When try to deployed squirrelmail, configured display language to "Chinese Simp" or "Chinese Trad", it could not display mail folder and reported "Reason Given: GB2312 character set is not supported." Checked locale/zh_CN[zh_TW]/LC_MESSAGES/squirrelmail.po, file charset encode is utf-8, also locale/zh_CN[zh_TW]/setup.php charset to utf-8, but at functions/i18n.php, it used charset of zh_CN/zh_TW to gb2312/big5. after changed it to utf-8, it working fine.However, all messages received is corrupted characters in chinese
Either the title is corrupted characters, or information is corrupted characters.
View 1 Replies
View Related
Dec 13, 2008
I just installed CentOS 5.2. I have both fonts-japanese and fonts-chinese installed. But I cannot see characters displayed correctly. All Chinese and Japanese characters are displayed as blocks of hexadecimals, except Japanese kana. How can I make them displayed correctly?
*** Appendix 1: /etc/X11/xorg.conf ***
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
EndSection .....
View 13 Replies
View Related
Jun 25, 2010
I'm stuck with the problem of amarok refusing to play songs that have any non-ascii characters in the metadata, which is about 1/3 of my collection.A solution to that problem would be ideal, but if there is a good alternative (like amarok 1.x series) I would probably switch.
View 5 Replies
View Related
Dec 16, 2010
On Linux Mint FBReader (both the latest version and the one in the 10.04 repositories)displays Chinese characters as boxes(see screenshot) for some reason, but on Windows it works fine. Is there any way to fix it?
View 1 Replies
View Related
Aug 28, 2011
While modifying the definition of my PS1, I saw that "[" and "]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention them.I searched for a solution to add them automatically, like with sed, but I didn't find any example.Are they still needed and is there a recommandation not to use sed to define PS1?
View 1 Replies
View Related
Jun 16, 2010
I have my OpenSuse 11.1 box set up with utf-8, however, every time I try to open a file with utf-8 characters with vi it can't handle those characters properly.
View 6 Replies
View Related
Nov 12, 2010
how do i delete any single one of the files in my whole disk that say something along the lines to "chromium os"? i.m just wondering because i tried to install through virtual box and failed, and probably have three different partitions consisting of nothing.
View 3 Replies
View Related
Jun 6, 2010
I have downloaded torrent from some chinese tracker. It has ???? and some other symbol charaters in directory name. How to delete that file and directory?
View 5 Replies
View Related
May 12, 2010
Can't rename, move or delete files or folders that have a foreign character.
Code:
The file or folder /data/down/done/1999 Taraf de Ha-douks does not exist.
Kubuntu Karmic. Fails in konqueror and dolphin.
View 5 Replies
View Related
May 3, 2010
I have a file with a number of strings like the ones below
string1#m1asdfe23easdf23wefas
string2#mfaaeb2vr1rhserh
anotherstring#ji89ensrsegr
anotherone#m1ynmdt324nsdt
I'm trying to delete everything after #** so that
string1#maasdfeaveasdfawefas
string2#mfaaebvrserhserh
becomes
string1#ma
string2#mf
tried sed 's/#..*//g' but as you all will know it returns string1, string2 etc.
View 12 Replies
View Related
Apr 17, 2009
I would like to modify the content of a text file in Linux, in the following way:=> the file has several of these lines:./run_pest3 ./g134366.04080_0.062 x 2_d043 1 0.43 results_EC=> I want to modify all lines to be:./run_pest3 ./g134366.04080_0.062 x 2_d043 1 0.43 results_EC0.062i.e., the last number of $2 should be "attached" to the end of $7, for each line.
View 5 Replies
View Related
Jul 20, 2010
I have a problem with both genisoimage and mkisofs. Both of them are limited to 8 characters. There are very many options for them. Which one would remedy the issue?
View 3 Replies
View Related
May 21, 2010
Simple logging script that allows user to enter quick notes and questions, but I can not get it to pass punctuation '?. no matter what I type after 'n' i need that to be inserted at the end of the working project note file.Any help and working examples would be appreciated, but please also direct me to the proper reading material so I can learn something - not looking for someone to just do it for me.usage:
Code:
bob@smith:~/notes$ n bob's script sucks?
>
[code]....
View 14 Replies
View Related
Nov 7, 2010
I have txt file with list of ID's and I need to insert comma in every line and then remove new line character so it'll become one long string. So to clarify, I have txt file content that looks like this.
234
5466
2356
... and so on.
but I would like this to change to 234,5466,2356,... I looked at sed and tried to wrap my head around the commands but I guess my brain isn't smart enough. its really confusing for me. I've managed to add commas to end of line (sed "s/$/,/g" filename) but somehow I can't seem to remove new line character from each line.
sed 's/[
]*$//' doesn't seem to work.
View 4 Replies
View Related