Special characters in Unix

I have pdf document which contains special characters in it.
The character is rendering correctly in Window nt but in Solarix/Unix it is being rendered as ?. How do I correct the problem on Unix and not create a problem on nt?

What character set are you using? Perhaps the document is using Windows-specific character encoding. Try using Unicode/UTF-8 instead, if you can. Or maybe your Linux fonts just don't contain the character you're trying to use.
I've never had problems with viewing a PDF on Linux before though.

Similar Messages

  • How to handle special characters in unix

    I have to implement a requirement where I construct a string separated by a special character, encrypt it and send it over to an external site. The program worked fine on my local machine (WL 9.2, JDK 5.0 on Windows). However, when moved to unix, the special character turned into ?. I searched and tried quite a lot of things but didnt find a solution. Has anybody encountered and resolved this issue?
    public class MyTest {
              public static void main(String[] args) {
              try {
                   String string1 = "abc";
                   String string2 = "def";
                   String string3 = "xyz";
                   String string4 = "127.0.0.1";
                   String sep = "?";
    String sMessage = string1 + "\u00A6" + string2+ "\u00A6" + string3+ "\u00A6" + string4+ "\u00A6" + sUserID;
                   String sMessage = string1 + "\u00A6" + string2+ "\u00A6" + string3+ "\u00A6" + string4+ "\u00A6" + sUserID;
                   System.out.println("Message = " + sMessage);
                   BlowfishMachine encryptor = new BlowfishMachine();
                   String sMessageTx = encryptor.encryptMessage(sMessage);
                   System.out.println("Encrypted Message = " + sMessageTx);
                   BlowfishMachine decryptor = new BlowfishMachine();
                   String[] splitStr = sMessageTx.split(";");
                   String sMessageRx = encryptor.decryptMessage(splitStr[0], splitStr[1]);
                   System.out.println("Decrypted Message = " + sMessageRx);
              } catch(Exception ex) {
                   ex.printStackTrace();
              private static String getCurrentDate() {
                   try {
                        SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy hh:mm:ss aa");
                        return sdf.format(new Date()).toString();
                   } catch (Exception e) {
                        System.out.println("Convergys  :Problem getting System Date");
                        e.printStackTrace();
                   return "abc";          
    }

    Sorry... hit the wrong key before I was done with the post!!!
    I have to implement a requirement where I construct a string separated by a special character, encrypt it and send it over to an external site. The program worked fine on my local machine (WL 9.2, JDK 5.0 on Windows). However, when moved to unix, the special character turned into ?. I searched and tried quite a lot of things but didnt find a solution. Has anybody encountered and resolved this issue?
    public class MyTest1 {
              public static void main(String[] args) {
              try {
                   String string1 = "abc";
                   String string2 = "def";
                   String string3 = "xyz";
                   String string4 = "127.0.0.1";
                   String sMessage = string1 + "?" + string2+ "?" + string3+ "?" + string4;
                   System.out.println("Message = " + sMessage);
                   String sMessage1 = string1 + "\u00A6" + string2+ "\u00A6" + string3+ "\u00A6" + string4;
                   System.out.println("Message = " + sMessage1);
              } catch(Exception ex) {
                   ex.printStackTrace();
    }This is the output I get on Windows:
    Message = abc?def?xyz?127.0.0.1
    Message = abc?def?xyz?127.0.0.1
    This is what I get on Unix:
    Message = abc?def?xyz?127.0.0.1
    Message = abc?def?xyz?127.0.0.1

  • Problem with reading special characters in unix

    Hi,
    Iam trying to read the data from a file by the following code
    FileInputStream inputFile = new FileInputStream(xx);
    InputStreamReader reader = new InputStreamReader(inputFile);
    BufferedReader bufferedReader = new BufferedReader(reader);
    String s= bufferedReader.readLine();
    one of the line in file has the character �
    It working fine on windows, but on unix Iam getting it as ��.
    I tried with InputStreamReader contructor which accepts the charset name also, like by giving Cp1252, and latin1 etc, but iam not able to get around this problem.
    Any Ideas Please?

    ��This suggests to me that your input file is encoded in UTF-8. But that's only a guess, you need to find out for sure. Asking the person who produced the file would be the most reliable way. When you do find out, specify that encoding as the second parameter of the InputStreamReader constructor.

  • Comparing special characters in UNIX

    #!/usr/bin/ksh
    v_v_delimiter='|'
    v_v_delimiter1='|'
    echo $v_v_delimiter
    echo $v_v_delimiter1
    if [ "$v_v_delimiter" = "$v_v_delimeter1" ]
    then
    echo if
    else
    echo else2
    fi
    echo $v_v_delimiter
    The above script gives output as
    |
    |
    else2
    |
    This is incorrect as it should go in "IF" condition.
    Plz help.
    Thanks in advance.

    mb.sharma, please enclose your code in code tags, so it's not altered and reformatted. it's now as good as unreadable.
    do that by placing the tag '{c o d e}' without the quotes and spaces before and after the code.

  • Special characters in UTF-8 UNIX file

    We have a program which downloads data from certain info-types in to the UNIX file, Fields are written to the specific position in the UNIX file. Some of the fields contains "Special Characters" in them.
    When we download the file in UTF-8 mode (encoding default) then the file display special characters correctly but the all the characters in that record gets shifted to left.
    When we download the file in ANSI mode then the file display doesn't special characters correctly but the all the characters in that record do not get shifted from their place.
    How can i find the special character in the field and accordingly i will shift the field right so that in the final UNIX file field won't shift their positions.

    Hi Ramnivas.
    Have you tried to read the characters with class: CL_ABAP_CHAR_UTILITIES (transaction SE24, label Attributes)
    For example you can see # in ABAP but in the file will be a new line or a carriage return, you can detect that an adapt it with:
    CL_ABAP_CHAR_UTILITIES=>NEWLINE or CL_ABAP_CHAR_UTILITIES=>CR_LF
    Other hand, if you are using OPEN DATASET to download the file, look at the options of encoding
    See F1 of OPEN DATASET and then encoding..
    OPEN DATASET - encoding
    Syntax
    ... ENCODING { DEFAULT
                 | {UTF-8 [SKIPPING|WITH BYTE-ORDER MARK]}
                 | NON-UNICODE } ... .
    Hope it helps
    Regards.
    Alfonso.

  • Mac file name restrictions/special characters

    What are the Mac OS file name restrictions? What are the special characters to avoid?
    Is this a legitimate file name? Are the colons allowed?
    /Users/Joe/Desktop/MyDocument 3:2:06.xls
      Windows XP Pro  

    Thanks, Sagesse. I'm new to the Mac OS. Is it tied to Unix in such a way that the colons are allowed?
    A user tried to provide a file with a name similar to that in my original post (e.g. "name 3:4:07.rtf") using a web form, and I'm at a loss as to how they could have saved it with the colons. Thank you for your assistance.

  • Handling special characters in XML

    Hi,
    I am using Oracle 10g 'XMLType' datatype to store XML files. Before storing I parse the XML document using Java Xerces Parser. If it parses successfuly, then I perform some business rule execution based on XML file which was parsed. So till this stage there is no problems. But when XML file contains some special characters like copy-paste of some description from MS-Word document into XML tags, then Xerces parser will parse such characters with out any exceptions, but while inserting XML document, Oracle database just throws exception saying unable to handle special characters.. So how to avoid such exceptions or silent such exceptions with any specific settings respect to XMLType datatype in 10g DB.
    Please advice!
    Arvind Patil - IN

    Monica--
    In XI 2.0, we've noticed a number of issues processing special characters, primarily caused by the version of JCO that we're running.  It sounds like SAP has spent some time in the past few months focusing on these errors, so make sure you're on the most recent patchlevels of all your middleware components, including any of the middleware libraries that BC uses. In XI, we had to update the 3 files that make up the RFC library and JCO library.  SDM couldn't update the libraries for us -- we had to manually move the files to the right place.
    Escaped XML characters like "&" """ """ were fixed as of JCO 2.0.10 (the current patchlevel on AIX/UNIX), the special character "'" is fixed in the next release, JCO 2.0.11, due out in a few weeks (hotfixes are available).  I don't know the equivalent versions on other platforms.  By default, XI 2.0 appears to have shipped with JCO 2.0.5.  I would expect many XI 3.0 users to also be affected.
    This may or may not apply to BC, because I don't know what BC uses to talk to SAP under the covers.
    --Dan King
    Capgemini

  • Problems with special Characters in filenames and folders

    My problem is that i have a small portlet which lists some files under each other. These files have sometimes the special character & in there name.
    If now a person clicks with right mousebutton on such a link, the saving dialog only shows a cryptik filename.
    Example:
    filename = harry&sally.pdf
    rightclick and saving the file the new name is something like: 2C576B9904F63BBEE040200A2A040606.pdf
    All other files even if they have blank characters or characters like ä, ö ... it works but not with &.
    Do anyone could say me how i can manage this?
    Message was edited by:
    Oliver Lemm

    having special characters in filenames is not a safe and healthy practice as you may see. this is specially true for the content that has to be displayed online using Oracle as Oracle uses <b>&</b> and <b>?</b> for passing parameter values in dynamic URLs. </p>
    <p>
    I would recommend estimation of the cost of fixing filenames to tackle this issue rather than to get a way-around to just bury it again. if you are using Unix platform, it should not be more than a line worth of command to fix for all such files using stream-editors; in windows you may take some more. but i understand, changing filenames might require one to see the impact of those changes on all other places where these files have been called. </p>
    <p>
    with kind regards,
    <br>
    syed

  • Problem with special characteres

    Hi. I have a problem with java. I�m making an application that works with special characters and displays correctly on my local machine, as I use escape characters such as &igrave; for �. The problem is when I deploy the application on a unix machine. All of the special characters (�, �, �, etc) appear like a �?� (question mark). Any tips, please?
    Thanks in advance

    Andy2008 wrote:
    Hi. I have a problem with java. I&#146;m making an application that works with special characters and displays correctly on my local machine, as I use escape characters such as &igrave; for �. The problem is when I deploy the application on a unix machine. All of the special characters (&#145;, �, �, etc) appear like a &#147;?&#148; (question mark). Any tips, please?First step: read [this excellent introduction into Unicode|http://www.joelonsoftware.com/articles/Unicode.html], it will give you the basics you need to solve this problem.
    How do you input and output those characters? Simply print them to the console? Or write them to a HTML file (since you mention &<something>; notation)?
    "?" is normally the result when you convert a String (which is always in UTF-16 encoding in Java) to an encoding that can't represent your characters (ASCII for example).

  • Special characters in file ^@

    hi,
    i used method tostring to convert a double into string and have written in a file,
    while i try to open the file in shell(unix), it shows some special characters as follows,
    ^@0^@.^@0^@4^@3^@7^@4^@0^@7^@
    ^@0^@.^@0^@3^@1^@3^@1^@9^@2^@
    ^@0^@.^@0^@1^@6^@5^@0^@2^@9^@
    ^@0^@.^@0^@0^@3^@1^@8^@5^@5^@1^@
    in between each numbers, when i open the same file in textedit it shows as follows,
    0.0655756
    0.0976344
    also i try to do global substitution using unix commands but shows the message pattern not found.
    here's my code what should do to get rid of this trouble,
    try {
                FileOutputStream fwrite = new FileOutputStream("gridfile.grid");
                DataOutputStream dwrite = new DataOutputStream(fwrite);
                for(int z=0;z<15;z++){
                    for(int y=0;y<15;y++){
                        for(int x= 0;x<15;x++){
                            doubgrid = Double.toString(filegrid[x][y][z]);
                            dwrite.writeChars(doubgrid);
                            dwrite.writeChars("\n");
                            //System.out.println("raech");
                fwrite.close();

    i didnt finish what i want to write so reposted it
    again,
    sorry for that,That's ok, it's just that two threads means people can spend time answering the question that's already been answered in the other one. The better thing to do in the future would be just make a new post in the original thread.
    I see from your code that you're using the default encoding for the output stream. Since you're writing text, a better way would be to use a BufferedWriter wrapped around a Writer:
    new BufferedWriter(new OutputStreamWriter(new FileWriter("filename"), "specify the charset here") );That lets you use a specific encoding instead of relying on the default.

  • NVision report through Report Book generating special characters

    Problem generating nVision Tabular report using Report Book. Reports brings special characters on two tabs after half way down the report. When we run the same report through two-tier mode it comes out clean. Tested the production and test layouts, they both bring the special characters. Running Peoplesoft Application 8.8, People Tools 8.45, MS office 2000 SR-1 Professional (both on server and the client computer.
    Appreciate any input on this case.

    Hi,
    Developer 6i does not support PDF subset (that is the easiest way to achieve this). In 6i you can try the following approach.
    Reference
    How to print Turkish correctly in UNIX Oracle Reports in PDF format? (Doc ID 146596.1)
    Regards, Roberto

  • Problem storing special characters (\, \n etc.) in the Properties file

    Hello,
    I am trying to store a string that contains special characters like \, \n, which are normally escaped using a \ character. If I try to save the Properties object into a file (using the store() method call), it doesn't store these escape characters as they are. The following is what I am trying to do:
    Properties p = new Properties();
    String samp = "This string will have a \\ and a newline \ncharacter";
    p.setProperty( "sample", samp );
    p.store( new FileOutputStream( "/path/to/my/file" ) );I am trying to achieve the following result:
    sample=This string will have a \ and a newline
    characterBut, instead, I get this:
    sample=This string will have a \\ and a newline \\\ncharacterCan somebody help me with this problem?
    Thanks,

    Thanks for your replies and efforts to help me out. I
    guess there is no solution to my unique problem.
    Basically I need this because one of my values (for a
    key) is a multi-line value. It will probably load
    fine when I use the \ character to delimit multiple
    lines, but when I want to write back the same value
    as multiple lines (using \ and \n characters), I am
    unable to do that. I don't follow, or else if you're saying what I think you are, I disagree.
    Let's say you have a String in your program that contains some \n characters, so if you print that string, say with println, on a Unix terminal, you'll see it on separate lines.
    Now you write that string out to a properties file with store().
    Forget how it looks in the props file. Consider that opaque, a black box.
    Now you use load() to get it back from the properties file. It will be re-created in its original form, so if you print it out on a unix terminal, you'll again see multiple lines. The fact that it's all on one line in the .properties file doesn't affect that.
    Now, if you want it to appear on multiple lines in the props file, then we're back to my previous post--you're breaking the format that load expects.
    At least, that's my understanding of how it works. I might be mistaken, but I think I've tested this very thing in the not-too-distant past.

  • Entering special characters at the command line.

    I'm writing a simple program in java that automates certain processes in learning a foreign language.
    This includes holding a database of vocabulary within the context of a sentence and testing a student on words they have encountered.
    Nothing too tricky, except that I am having trouble with entering special characters at the command line. I'm not really surprised by this and was hoping that someone could help me.
    I'm using a mixture of Solaris 8 and Mac OS X 10.3 for running the software, so anyone with any input on either of these systems will be able to help.
    The characters I am trying to enter are the following:
    �,�,�,�,�,�,�,�,�,�,�,�.
    They are latin, and used in Spanish amongst other languages.
    I'm a little confused by the implementation of character sets. I can enter these characters in applications such as word or textedit or an email, but just not at an X window.
    From looking at the web it appears that these characters can be input using the
    Latin1 (ISO 8859-1) character set or the ISO 10646-1/Unicode extension.
    I'm just not sure what I actually have to do to get it to work.
    If anyone can offer any help I'd be really grateful.
    Ian Stanton

    It's a problem that could be encountered in different circumstances, in this circumstance it is with a program I am writing in java.
    I anticipate that these days not that many applications are delivered that require use of the command line, but since I am still learning Java it is necessary to explore this avenue.
    It's interesting actually since presumably developers writing code for the international market need to accomodate characters similar to those I am attempting to enter, and more that are less familiar to me such as far and middle eastern scripts, and of course many others.
    We (possibly) assume that since a character is printed on our keyboard it is a simple matter to read it in. But what if I was a Spanish student wanting to type a character into the command line and that character wasn't there? I believe that Spanish (and variants of that language) is the third most spoken language on the planet.
    These characters are often relatively easy to enter in office and internet applications amongst others but apparetly not so at the command line.
    Maybe this question is more suitably asked of the Unix community but I thought it a good idea to try Java since i was writing Java code and that many Java programmers could have encountered the same problem.

  • Get rid of special characters "^@"

    hi,
    i used method tostring to convert a double into string and have written in a file,
    while i try to open the file in shell(unix), it shows some special characters as follows,
    ^@0^@.^@0^@4^@3^@7^@4^@0^@7^@
    ^@0^@.^@0^@3^@1^@3^@1^@9^@2^@
    ^@0^@.^@0^@1^@6^@5^@0^@2^@9^@
    ^@0^@.^@0^@0^@3^@1^@8^@5^@5^@1^@
    in between each numbers, when i open the same file in textedit it shows as follows,
    0

    Specify the character encoding used to write the file, and use an editor that can display the file in that same encoding.

  • How to insert special characters ,?

    Hi, guys
    I want to insert some special characters such as , ,,into Oracle,
    for instant: insert into test (special_no) values (' ');
    but the system can not read and show the characters, and just process the characters as null. Could you please tell how I can do to make the system can read the characters? Maybe should I change the some Oracle environment parameters?
    By the way, I immigrated data and tables from MiniSQL to Oracle. How can I check the all data immigrated are correct? In the Mini SQL there is a command 'realshow' to show all data and tables in the database. Is there a command like this in Oracle?
    Thanks ahead.
    Agurri

    NLS_LANG could help but I am not sure about that. You should be able to get any character in the database, that the database supports. What character set is the database created with ?
    You can also use the numeric value for the char
    insert into x (y) values (chr(13)); or whatever.
    Ronald.
    http://ronr.nl/unix-dba

Maybe you are looking for

  • Cannot send email from yahoo mail client

    I cannot open or send or attach anything to my email in the yahoo mail.  I know there's nothing wrong with the email because it works on my laptop, just not on my computer.  Could there be a setting problem, or a cookie problem or something? I also c

  • For Init without data transfer showing records 0 from 0

    Hi all, Iam doing Init without data transfer to ODS. In the ODS manage it is showing 1 from 1 which is correct. This ODS data is automatically updated to a cube. There in the cube manage it is showing 0 from 0. My mappings in update rules also correc

  • Download suddenly very slow

    I have experienced a slowness in downloading video files. What actually happens?

  • Satellite Pro L300 - How to transfert Windows on new HDD?

    Hello, I recently got an hard drive from a broken laptop bigger than mine. I would like to put it in my computer, but I don't know what would be the way to transfer the installation partition (or even better also the windows already installed partiti

  • Add report to module SD

    Hi all. i writed report yet, i want run report in module Sales and Distribution. To Who those is help I. Thank very much.