OpenSUSE :: Can't Print Files With Chinese Char With Lp Command?
Jul 5, 20111. lp file_with_english_chinese2. lp -ozh_CN.utf8 file_with_english_chineseThe normal ascii characer prints ok but the chinese character are blank.
View 4 Replies1. lp file_with_english_chinese2. lp -ozh_CN.utf8 file_with_english_chineseThe normal ascii characer prints ok but the chinese character are blank.
View 4 RepliesI can see and edit chinese file in console by
vi testfile
I also can gedit the testfile and print it in chinese perfectly. But I can't see the chinese by cli to print file , can only see some small rectangles to instead.
lpr testfile
Program in CSay I have a char array of 1024 bytes called buf1.But I only want to print the chars in index 0 up to index 30. I know I could do this with a for loop. But is there any other way? What about maybe storing from 31-1024 to another char array say buf2 with strcpy and somehow popping 31+ out of the buf1 char array?
View 3 Replies View Relatedm getting the following error when trying to compile:Quote:
$ make
g++ -march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3 -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"undelete"' -DHAVE_SVDRP -I../../../include undelete.c
[code]...
Programming in C.I have two char arrays.char buf1[1024];char buf2[1024];Aren't buf1 and buf2 also pointers?I read in 1024 bytes into buf1 which contain about 300 bytes of characters with newlines. The data is basically a few English sentences. I'm trying to scan buf1 for newlines and then stop at the 1st newline and copy the rest of the data from that 1st newline into buf2.So I run a for loop to look for that new line.
Code:
for(i=0; i<1024;i++) {
if((strcmp(&buf1[i], "
[code]...
I am having trouble with the following exception class.
Code:
/**Standard Exception
*
*@description
*@update
*@changes
[code]....
Line 43 points at the snprintf() command.I think the error has to do with the function being virtual and the const after the function definition, however although I have been looking really hard I have not being able to find the reason nor the solution to the problem.
One workaround that I know is moving the block of source withing the virtual function, in the constructor, however having read around (boost library exceptions tutorials) it specifically said that formating of errors messages should not take place withing the construction of objects because we are risking throwing an exceptions and messing up the flow order.
i define variable of type char (range -128 to 127). when i tried to print the value after assigning a -ve value to it it displaying a +ve value of that -ve value(256+value).
View 3 Replies View RelatedWith this I may remove the last emtpy char which is not visible, coming from net, windows, ...
Code:
echo "$mystringwindowsorotherwithemptylastchar" |sed s/.$//
However if there are not then it makes a problem and delete effectively an existing char.
Code:
echo "klklj" |sed s/.$//
klkl
Anyone would have a solution for SH?
I am trying the execute the following
#!/usr/bin/python
import os
os.system("sed -e 's#^(.*) (.*)0http://12#' t2.txt > t3.txt")
os.system("cat t3.txt | sort | uniq -c | sort -rn | head > t4.txt")
But I receive the following error message.
sed: -e expression #1, char 27: unterminated `s' command
is it possible to convert a variable from char * to unsigned char ?
View 5 Replies View RelatedI cannot print pdf files. I have tried using okular and xpdf. The documents display in the program, but print preview shows a blank page. The printer then sends out blank pages. I have tried printing on 2 different printers using usb cables. Using terminal to process the commands shows error:
Quote:
xxx@xxx:~$ xpdf
***** MediaBox = ll:0,0 ur:611.976,791.968
***** CropBox = ll:0,0 ur:611.976,791.968
***** Rotate = 0
Segmentation fault
Converting to .ps also is blank.
Just in case someone can reply a silly question, I've quite forgot the vi/vim command to bring the cursor to the 1st char in the current line. I do remember that for bringing it to EOL is '$'.
View 14 Replies View RelatedI need a sed command to print a list of files in "/home" directory, ending in ".sh"
View 4 Replies View RelatedI am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;
how to read data from excel to java in the excel sheet chinise language is present while reading into java iam getting question marks.how to get chiniese language instead of question marks in the java file
View 1 Replies View RelatedI just recently learned about the wonderful little lpr command- and using man -t (bash command) to beautifully print man pages for reference- but is there a way to print both sides of the paper using a printer so equipped?
View 2 Replies View RelatedI have a debian system installed on my pc . I have just saved a text file on my desktop . Please let me know how can i print the file through comand prompt ? I need to learn the printing the file thru comamnd line .
View 1 Replies View RelatedI want to know if it's possible to write chinese character in the different applications (openoffice, thunderbird ecc) and how to do it (keeping the original language of the OS, talian)
View 6 Replies View Relateda vim (alghough I esteem the corresponging vi command is the same) command to insert one character only, into the text being edited. That is, I'm in command mode, I issue command INSERT, I type a character, and automatically I'm again in command mode, where INSERT is the command I do not know. I have vimtutor but do not see it explained there.
View 7 Replies View RelatedI've never programed shell scripting.
Code goes like so:
I simply want to read a file "data.txt" line by line Then char by char and add them into a result var. The file is supossed to always contain numeric values
How do you install a Chinese character set on the computer so that I can read Chinese file names?
View 1 Replies View RelatedI have just installed opensuse and the codecs to replace windows on my laptop. This is my third day using open suse and some of the websites i try to open (amazon.co.uk, gmail.com and others) redirect to a chinese website called www.net.cn) This is the same with the firefox and opera browsers.
View 6 Replies View RelatedI've choice English as "primary language" in language configuration in Yast, and have also installed Chinese as secondary language.In most programs Chinese displays normally, like Evolution, Firefox, Dolphin, but in VLC media player and some other applications, Chinese couldn't be displayed properly.
View 8 Replies View RelatedI've installed 11.4 KDE x86-64,which downloaded last night,a GM version. Things working great except 2 thing : SCIM & wifi.SCIM Chinese input works great when 11.3 KDE,but in 11.4 KDE it ONLY works in Dolphin,not works in Firefox.........
View 5 Replies View RelatedHow do I find files in opensuse 11.2 without using the command line. I see in dolphin "nepomuksearch", but it doesn't work. Even in the command line you cannot whereis a file like Monday, Monday.mp3. whereis also seems to be case sensitive.
View 5 Replies View RelatedI am trying to find a way to print PDFs from the command line. I was using "cups-pdf', but I want to be able to specify the output folder from the command line. Is there a way to do this? I guess what I am trying to do is the Gnome "Print to file" option in the terminal so I can easily print off a batch of file to whatever directory I wanted.
View 4 Replies View RelatedIs there a way to extract the last field? Specifying the field number is causing problems using awk or cut as the input log file has the output specified in different lines at different places/fields. The only thing constant is the 'pathname' which always occurs at the end.
View 3 Replies View RelatedI am trying to write a program that monitors when an lp or basically any sort of print command is issued. If a print command is detected I want to pause that job and ask the user if he / she wants to continue.
This program would run in the background all the time so it can't sit and eat up a lot of cpu. I tried a simple while loop that continuously monitored "ps" and that obviously boosted my cpu to 100%.
I am creating a script to sync my important documents between two system. I want my script to generate a log file for the last action. can you suggest me a way to achieve this.Question: If I execute the rsync command with -v flag, it will print a lot of messages on the console. Is there any way. So, I can redirect these logs to a file?
View 4 Replies View RelatedI am looking for a way to print the timestamp of a directory using find command. I can do that for a file, but for a directory, it is printing the contents of the directory as well. Lets say there is a directory called doc, and there are more than one occurrences of that directory.
find . -name "doc" -type d -exec ls -l {} ;
This is printing the contents of all the files under doc directory as well.