Ubuntu :: All Characters In Windows Became 口?
Dec 23, 2010Just now, after I open my computer, all of sudden, all the characters in windows and menus became little rectangles. What shall I do?
View 9 RepliesJust now, after I open my computer, all of sudden, all the characters in windows and menus became little rectangles. What shall I do?
View 9 RepliesWhat 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?
I've got a basic script, which parses data from a text file and performs actions based on that data. Here is my code:
Code:
dsrc="/home/russellm/sites/"
ddst="/home/russellm/othersites/"
while read SiteID
do
if [[ ! -d "$ddst${SiteID:0:1}" ]]
then
mkdir "$ddst${SiteID:0:1}"
fi
mv "$dsrc${SiteID:0:1}/${SiteID%*}" "$ddst${SiteID:0:1}/" | tr -d '
' done < sites.txt
The text file came from a windows system, and contains those return characters (). I 'could' just run the whole thing through tr and then run the script on the new data file, but I'm looking for a more elegant solution. As the code above shows, I'm trying to pipe the mv command though tr in order to remove the return character - but it's not working. I can't get this to work with sed either, so I know I'm doing something wrong. I also tried to remove it using ${SiteID%} - but that also failed. The characters don't show up in an echo, just when executing a command.
Output example (emphasis mine):
Code:
mv: cannot stat `/home/russellm/sites/B/B23467324
': No such file or directory
I'm tempted to just convert the file once and call it a day, but you know what it's like. To be honest, I'm starting to suspect that there are no return characters, and that I'm going about this wrong.
I've always been connecting to linux machine from windows computer, using putty.
Now the situation changed and I have a question:
How the hell can I write special characters (like | ~ Alt + 124 in Windows)?
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 RelatedI have the following in my .screenrc file
hardstatus string '%{= kw}[%{r} %d/%m/%Y %C %A %{w}] [%= %{= kw}%-Lw%{= kW}%{r}%n:%t%?%?%{= kw}%?%+Lw%?%?%= ] [ %{r}%l%{w} ]%{w}%{w}'
and the statusbar shows up as
[ 30/12/2010 8:24 PM ] [ 0$ bash 1-$ bash 2:bash ] [ 0.00 0.03 0.04 ]
I want it like this instead:
[ 30/12/2010 8:24 PM ] [ 0:bash 1:bash 2:bash ] [ 0.00 0.03 0.04 ]
When I open a terminal or konsole window, output (either STDOUT or STDERR) sometimes contains funny characters instead of something meaningful. Can someone explain how I might correct this situation?
ANALYSIS:
One very repeatable example involves using the manual page command
Code:
man set... man page output ...upstart - event-based init daemon
In my copy of the output, there are several problems in the very first screen. In the synopsis section, there is "{ value | ?value? ..." Replace the '?' with a lower-case-a-under-a-carat character (a-hat).
I suspect the garble character might be apostrophe in real life.
In other places, I see var?/able or how?/ever or trans?/action where the '?' is again a-hat and the '/' represents end of line or newline. I suspect the garble character might be a hyphen in real life.
All of this suggests that there is a conflict between the character stream written to STDOUT by the man command and the character-display settings (is that "code page" or similar?) of the specific terminal or konsole in use.
In specific, I use konsole v1.6.6 from KDE v3.5.10. In general, I'm running Ubuntu Hardy (v8.04.3 LTS).
We're in the process of implementing an offsite backup of all our servers to a remote Linux server. We're using rsync over ssh.What I've found is that characters such as , , and are replaced on the Linux server with underscores.I don't mind if it changes these characters in the filenames of documents, but when it renames a language pack from Espaol.clx to Espa_ol.clx, it could cause issues for us further down the line.
What do I need to do differently to make the special characters copy over correctly? For the initial sync which will take place locally, before the machine is moved offsite, I have SAMBA enabled. I am able to copy files from Windows to the Samba share, retaining the original filename, though it looks different in the Linux directory listing, i.e. têst becomes stThese files get deleted by rsync when it runs, as it does not match the filenames.
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 RelatedI tried to tag late onto a question similar to mine on stackoverflow (Find Non-UTF8 Filenames on Linux File System) to elicit further replies, with no luck so far, so here goes again... I have the same problem as the OP in the link above and convmv is a great tool to fix one's own filesystem. My question is therefore academic, but I find it unsatisfactory (in fact I can't believe) that 'find' is not able to find non standard ascii characters.
Is there anyone out there that would know what combination of options to use to find filenames that contain non standard characters on what seems to be a unicode FS, in my case the characters seem to be 8bits extended ascii rather than unicode, the files come from a Windows machine (iso-8859-1) and I regularly need to fetch them. I'd love to see how find and/or grep can do the same as convmv.
[Code]....
I added a Romanian keyboard to the system. When I check the layout I see some keys have four characters associated with them. For example the key highlighted in the screenshot I attached has four characters: ș, Ș, ;, :. The first two can be used by pressing the key with or without Shift, but how about the other two?
View 1 Replies View RelatedI've downloaded a .htm file from the WWW which has the following few lines:
Quote:
<h1>
Latest Times as at: 4-Feb-2010 15:30 ${color3}${execi 1800 grep "Latest" FinishTimes.htm | sed -e 's/ in Tideda Files//'}
</h1>
and in my Conky script I do this:
Code:
${color3}${execi 1800 grep "Latest" FinishTimes.htm}
but when it prints on the screen there is an empty box at the end of the line. I assume this a CR or LF that's attached to the end of the line, but how can I get rid of it?
I have a problem when opening documents in OpenOffice write, it doesn't display the characters for certain menu options - just a series of squares instead. It does this in other OpenOffice applications as well.
View 2 Replies View RelatedI am trying to type German Umlaut letters on an English keyboard using kde 4.4. For some reason I seem unable to figure out how to do that (I have just recently switched to kde, was using gnome before). I have looked through various threads and the kubuntu wiki [URL], but can't get the compose key to work. In gnome I used to type "AltGr" plus "[" followed by a vowel and thus get my Umlaut - before I fiddled with the system settings this worked in kde, but only in firefox & Open Office (I assume they are gtk apps).
Since it did not work in Kmail, I went to the system settings, set up a ComposeKey (AltGr, but also tried rightWin), but it doesn't change anything for the kde applications. It only means that the old key-combination now stopped working in firefox and OO. In the system setting of kde 4.4 I can't see the options to enable xkb-options, but I assume the advanced options of the keyboard layout are xkb-options of previous kde releases. I unticked the box 'reset old options', but nothing changed. I type a lot of German text, so using a character map is not an option.
This happened to me first time when i installed VLC Player,and now it happens in QT Designer too I dont know if its relevant,but when i installed Ubuntu,i installed it in Serbian language (cyrilic) and than switched to English.
View 4 Replies View RelatedHow can I change those heavy black dots that are generated in the hidden password field to asterisks? I have looked in gconf-editor but haven't run across it. Or maybe it's in a totally different place?
View 3 Replies View Related@ ubuntu - 10.04 -32bit. Linux 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux
Suddenly, maybe after the last synaptic update, i got unreadable bad characters in gnome.
In the Firefox browser (at the top.. ), copying dialogs, synaptic..
I need to find files that contains do in their name, it can be anywhere in the word, exsamples downloads, loldo, asdomk... ?
View 1 Replies View Relatedhow 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 RelatedI am the proud owner of a netbook with Spanish keyboard where the < and > keys do not type the corresponding symbol. Instead they send Home. In addition I write in Norwegian and I would like to type the easily. Alt gr (right alt) combinations do not generate those characters. I would like to type < with the Shift-Ctrl-L key combination and similar short cuts for the remaining keys I am missing Like Ctrl-Shift-o for . I somehow was able to launch gnome-do with the Ctrl-Shift-Space key combination which is great as the Windows key is hijacked by Unity.
View 2 Replies View RelatedI've been having a strange problem with my keyboard lately. certain characters aren't capitalized when I hold the left shift. Right shift covers these buttons, but then ignores some itself.I know that it used to be fine, as I set a password on my router with a capital letter which then did not work, and in my AWN terminal, I would use ctrl+shift+v to paste in lines of code.
I am running Ubuntu 10.04 64 bit, on a Compaq Altec Lansing.For a demonstartion, here is the alphabet as typed holding the shift keys.
Left Shift
ABcDEFGHIJKLmNOPQRSTUvWxYz
Right Shift
ABCDeFGHiJKLMNopqrSTuVwXYZ
Both Shifts
A B ce D ce F G H ,i J K L mu N .o /p zq vr S T mu vr xw xw Y zq
Also, I noticed now that I cannot use the right shift with the Left arrow key to highlight text...
I have a weird issue in Firefox on Ubuntu 10.10, and sadly it's a periodic mistake that I don't know how to initiate... Sometime in firefox some of the characters seems not fully rendered, and as I recall it can also happen in menu fonts sometimes. In the attached screen-shot you can see that it's the a character that has the problem - but only for one font type or? But I have seen this with most characters I think - and as stated this happens randomly.For instance right now I looked again in the tab in firefox where I just 5 minutes ago did the screen-shot and now all characters are correct?? I have tried to reload or even restart firefox when it occurs, but this is now guaranty for a solution... When it happens it makes many homepages unreadable
View 9 Replies View RelatedAnyone who could translate this picture for me? Its from Taiwan, so I guess some kind of Chinese.
View 1 Replies View RelatedI have installed scim and anthy. Most Japanese characters display, but some websites and files show garbage characters. Is there any way to resolve this?
View 1 Replies View RelatedI got a new computer yesterday, a 64-bit Asus.I replaced the power supply and the graphics card immediately. I booted the computer up with a spare 20"idescreen monitor on a portable desk to install Ubuntu and make sure all was well with the newly installed power supply and graphics card.It worked perfectly.I moved my old tower out from its slot under my desk and put the new Asus tower under there. I plugged it into my 23" widescreen monitor and booted the computer.Ubuntu (9.10) boots just fine... but the login screen is all boxes!! There are no characters, just little white boxes. I can put in my password and log in. Once logged in the system is fine - all characters display normally from within Ubuntu.
View 2 Replies View RelatedSay 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:
I need a little insight, and I�m not sure if the two can relate, but I am trying to find out the following.
When generating WEP Keys the available bits are: 64/128/152/256; however, you need 5/13/16/29 character respectfully for each key if you generate the key manually.Can this formula be applied to passwords and the length of the password? For example: if my password had 29 characters, could I say that my password is 256-bits?
Just a small issue:I have a note in Tomboy called "Today's tasks".When I access the synchronised note on Ubuntu One, in the tabbed view it is called:"Today's tasks"Perhaps someone working on this would like to investigate it.
View 2 Replies View RelatedI am attempting to use putty in Karmic 64 bit - but on clicking open I get to a shell which I cannot type anything into;
Anyone know how I can enable typing into this shell?
I noticed some programs, such as Terminal, would instead of having the default font, all the characters were boxes (as if they were undefined chars). Then I restarted and then ALL TEXT ON UBUNTU WERE []S. I can't even read what anything says. I'm in Windows now posting this because I can't read anything on Ubuntu.
How can I fix this font issue? (Preferably without reinstalling?) I noticed using recovery mode I can use a non-GUI version of Ubuntu which is basically Terminal as an OS in which I can actually see the font.