LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what does '\?' means in urxvt? (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-%5C-means-in-urxvt-4175514136/)

v3ct0r 08-10-2014 07:34 AM

what does '\?' means in urxvt?
 
Hey, For guys using CJK(Chinese Janpanese Korean) based system like me? have you ever seen '\?' in terminal output?

Usually when I copyed files from a windows machine and the file name was in Chinese, problem occured. Yeah, Chinese version Win7 uses GBK and Linux uses UTF-8.

I googled it, the solution is 'convmv' while, it didn't work. I seems those file names were not in GBK or any other char set. I checked :set fileencoding in '.' files, which outputed nothing.

Any guys knows what '\?' means?

Ztcoracat 08-10-2014 04:48 PM

Hi:

The only time I use the "\" is when I have to enter a long command and the cursor reaches the right side of the screen. You can use the '\'(backslash) to continue the command on the next line.

It wraps everything that is typed into one sentence.

Code:

[ ~]$ echo "Please enter the three values\
> required to complete the transaction"
Please enter the three values required to complete the transaction
[ ~]$

That's just one example that I know off hand-
If the backslash means something else I would imagine others members will chime in:-

-:-If you do have output from the terminal with the backslash in it; post that output for us to read and interpret it.-:-

Ztcoracat 08-10-2014 05:21 PM

This Arch WiKi page on rxvt-unicode might help-
https://wiki.archlinux.org/index.php/rxvt-unicode

v3ct0r 08-10-2014 08:21 PM

Quote:

Originally Posted by Ztcoracat (Post 5218525)
This Arch WiKi page on rxvt-unicode might help-
https://wiki.archlinux.org/index.php/rxvt-unicode

Nope, I mean it seems when I copy things from windows, the files truly lost coding information, I was just not sure

Ztcoracat 08-11-2014 01:53 PM

Sorry I'm not sure how to tell if files copied from a Windows os could change code or not.

Maybe a member running Windows will know-

When you open a file that you copied from Windows does it appear all jumbled and misconfigured?

zer0python 08-11-2014 03:09 PM

Sounds like it could be an encoding issue.

file -i on the questionable file may reveal more info.
Encoding detection is almost a whole field in it self, I've used a few libraries in the past that did poor to fair at encoding detection, but still not perfect. (Web site authors are famous for doing charset="XXX" when their really using some other encoding.)

The other tool to use is "iconv", it's a very popular re-encoding tool. You can easily tell iconv that it should read the input as XYZ encoding and output as ABC encoding.

The other potential option is, since you're using CJK, you may already be using a UTF-N encoding. In which case it may be that you need to install the correct fonts. Quick google search gave me this: http://kile.sourceforge.net/Documentation/html/cjk.html

v3ct0r 08-12-2014 08:49 PM

Quote:

Originally Posted by Ztcoracat (Post 5218953)
Sorry I'm not sure how to tell if files copied from a Windows os could change code or not.

Maybe a member running Windows will know-

When you open a file that you copied from Windows does it appear all jumbled and misconfigured?

No, what's inside the file is okay.

Ztcoracat 08-12-2014 08:53 PM

Quote:

Originally Posted by xeechou (Post 5219983)
No, what's inside the file is okay.

Ok, that's good-

Do you think it's an encoding issue like zer0python suspects?

v3ct0r 08-12-2014 08:53 PM

Quote:

Originally Posted by zer0python (Post 5218995)
Sounds like it could be an encoding issue.

file -i on the questionable file may reveal more info.
Encoding detection is almost a whole field in it self, I've used a few libraries in the past that did poor to fair at encoding detection, but still not perfect. (Web site authors are famous for doing charset="XXX" when their really using some other encoding.)

The other tool to use is "iconv", it's a very popular re-encoding tool. You can easily tell iconv that it should read the input as XYZ encoding and output as ABC encoding.

The other potential option is, since you're using CJK, you may already be using a UTF-N encoding. In which case it may be that you need to install the correct fonts. Quick google search gave me this: http://kile.sourceforge.net/Documentation/html/cjk.html

Thanks anyway, but that is not my problem, I guess I'll have to learn how to make my question more clear and specific.
I'll do more research on this.


All times are GMT -5. The time now is 01:53 AM.