Printer name with non-ASCII character

Is it possible to name a printer using ISO-8859-1 (or WINLATIN1) characters?
Our business system has logical printer names defined, sometimes using Norwegian (and Danish) letters (AE-lig, O-slash and A-ring), which we would like to map to the correct Windows UNC paths.
Mapping to a UNC path containing one of these characters works fine. But if the printer name itself contains a non-ASCI ISO character it fails.
Example using BÆR (B AE-lig R):
!p BÆR * \\print\bærum * 50 *
Don't know how the log will look after posting, but I'll try:
jfserver.exe: [400]D:\Adobe\Central\Server\Data\Test.dat : ^job TEST -zBÆR -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos"
jfserver.exe: [400] ^JOB formname='TEST' printername='B'
jfserver.exe: [400]Scanning !f for candidates
jfserver.exe: [400]Mapped printer name 'B' to id 'R' dev '*'
jfserver.exe: [400]Other job tokens before substitution 'R -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos"'
jfserver.exe: [400]Other job tokens after substitution'R -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos"'
jfserver.exe: [400]Merge parms before substitution '\\printer\b'
jfserver.exe: [400]Merge parms after substitution'\\printer\b'
jfserver.exe: [400]Task parms before substitution '"test.mdf" "D:\Adobe\Central\Server\Data\Test.dat" -l -apr"" -all"D:\Adobe\Central\Server\jfserver.log" -asl1 -amq0 -ams"D:\Adobe\Central\Server\Mst\R.mst" -m2T -z"*" \\printer\b R -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos" -aii"D:\Adobe\Central\Server\jfmerge.ini"'
jfserver.exe: [400]Task parms after substitution '"test.mdf" "D:\Adobe\Central\Server\Data\Test.dat" -l -apr"" -all"D:\Adobe\Central\Server\jfserver.log" -asl1 -amq0 -ams"D:\Adobe\Central\Server\Mst\R.mst" -m2T -z"*" \\printer\b R -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos" -aii"D:\Adobe\Central\Server\jfmerge.ini"'
jfserver.exe: [400]"test.mdf" "D:\Adobe\Central\Server\Data\Test.dat" -l -apr"" -all"D:\Adobe\Central\Server\jfserver.log" -asl1 -amq0 -ams"D:\Adobe\Central\Server\Mst\R.mst" -m2T -z"*" \\printer\b R -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos" -aii"D:\Adobe\Central\Server\jfmerge.ini"
jfserver.exe: [307]Launching task '"D:\Adobe\Central\Bin\jfmerge" "test.mdf" "D:\Adobe\Central\Server\Data\Test.dat" -l -apr"" -all"D:\Adobe\Central\Server\jfserver.log" -asl1 -amq0 -ams"D:\Adobe\Central\Server\Mst\R.mst" -m2T -z"*" \\printer\b R -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos" -aii"D:\Adobe\Central\Server\jfmerge.ini"'.
jfmerge: [125]* Processing data file: 'D:\Adobe\Central\Server\Data\Test.dat'.
jfmerge: [289]MDF file `D:\Adobe\Central\Samples\Exprint\forms\test.mdf' opened.
jfmerge: [400]The filename, directory name, or volume label syntax is incorrect.
jfmerge: [2]Error opening output device/file '*'.
jfmerge: [210]Nothing was printed.
jfserver.exe: [314]Agent exit message: [2]Error opening output device/file '*'.
jfserver.exe: [400]spawned '"D:\Adobe\Central\Bin\jfmerge" "test.mdf" "D:\Adobe\Central\Server\Data\Test.dat" -l -apr"" -all"D:\Adobe\Central\Server\jfserver.log" -asl1 -amq0 -ams"D:\Adobe\Central\Server\Mst\R.mst" -m2T -z"*" \\printer\b R -afp"D:\Adobe\Central\Samples\Exprint\forms" -alp"D:\Adobe\Central\Samples\Exprint\logos" -aii"D:\Adobe\Central\Server\jfmerge.ini"'
jfserver.exe: [400]--> returned [-2] [2]Error opening output device/file '*'..

For others who might have the same problem. You can solve it by quoting the device name and/or printer name.
!p """BÆR""" * """\\print\bærum""/q" * 50 *
This, however, causes the printer name to be '"BÆR"' with the double quotes included in the name. Thus, the job card must contain the unfortunate tripple quotes as well: -z"""BÆR""".

Similar Messages

  • ALV Grid bug when dealing with non-ASCII character

    Dear all,
    I have a requirement to display user's remarks on ALV.  The data element of the remarks column is TEXT200.  I know that each column in an ALV Grid can display at most 128 characters.  Since my SAP is an Unicode system, I expect that each column in my ALV Grid can display 128 Chinese characters, too.  However, the ALV Grid only display 42 Chinese characters at most.  Is this a bug in ALV Grid?  How can I fix it?
    I did a small experiment.  The results are listed below.  My version is Net Weaver 7.01.  The results show that the bug does not exist in ALV List.  However, my user prefers ALV Grid, which is more beautiful and elegant.
    Type of ALV
    Max number of
    ASCII character
    in an ALV column
    Max number of
    non-ASCII character
    in an ALV column
    42 Chinese characters
    42 Chinese characters
    42 Chinese characters
    132 Chinese characters
    If you encounter the bug, please post your solution.  Thanks a lot. 

    It looks like limitation of ALV grid cell, which can contain up to 128 bytes in SAP gui.
    Your unicode characters are probably 3 bytes each.
    Check OSS Note 910300 for more detailed info.
    EDIT: Note 1401711 seems to be a correction for your issue It allows to use 128 characters (even if they take more than 128 bytes).

  • Mail IMAP after 10.5.2 can't read ANY mails in boxes with non-ascii names

    I have Mail with IMAP that connects to a regular MAC OS X Tiger server running IMAP.
    After upgrading to 10.5.2 on the client, Mail can no longer read ANY mails at all in any mailbox whose path contains a non-ascii character!
    Hence: If a box is called 'Övrigt', it only lists the mails in the mail box, but it will not show any of the contents of any of the mails! Hence, I cannot access any of these mails! Catastrophic!
    I have to downgrade to 10.5.1, unless someone knows of a workaround.

    Same problem here (or at least in part). Some .mac folders did no longer show any messages, while they were there and could be seen online and with Thunderbird. After your remark I changed the name of a folder which contained a "´" and now it works. It is really strange because there is another folder with a "¨" in it which does not work (I will test if the name change works with this folder as well in a minute) whilst there is another one with such name which works fine. The update really messed up Mail and in Dutch we just use such characters so Mail without supporting them will be rather useless for me...

  • Problem with non-ASCII file name in content disposition header

    Hi All,
    I am facing some problems with the non-ASCII file name incase of content-disposition header. I read from the RFC 2183 that if the file name contains non-ASCII characters then the same should be encoded before sending to browser. I did the same but realized 2 problems:
    1. The name of the file is truncated in case the file name is slightly long for e.g. �����������j�b�g��������������������������.txt
    2. Also when the same file is opened in notepad, the title is showing encoded name %E6%9C%80%E4%B8%8A%E4%BD%8D.....
    Overall, I feel that the browser is not understanding or responding to the encoded header values.
    Is there any solution to this problem? I am using Microsoft IE 6.0.
    The code snippet is given below:
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              String fileName = "�����������j�b�g��������������������������.txt";          
              fileName = URLEncoder.encode(fileName, "UTF-8");
              resp.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");
              String s = "This is inside txt file";
         }Any help or pointer would be highly appreciated.
    Thanks and Regards,

    The MIME standards for non-ASCII filenames are not widely implemented.
    Many mailers use an ad hoc method for encoding filenames. JavaMail
    supports both methods, but you need to set properties, such as the
    mail.mime.encodefilename property. See the JavaMail javadocs for
    the javax.mail.internet package.

  • Cannot rename file with non-ASCII characters when using the

    My application moves files from one directory to another by calling File[] srcFiles = srcDir.listFiles() to get a list of files in the source directory, and then calling srcFiles.renameTo(destFile) to rename each file.
    This does not work (renameTo returns false and the file is not moved) under the following circumstances:
    - the file's leaf name contains non-ASCII characters, for example "�"
    - the OS is Solaris 9
    - the LANG and LC_* environment variables are unset, i.e. the C locale is being used
    If I set the LANG environment variable to, for example, en_GB.UTF-8 then the rename succeeds.
    I have tried calling srcFiles[index].getName().getBytes("UTF-8") and the non-ASCII characters are being replaced with ? (0x3f) characters when LANG is unset.
    Is this a bug in the JRE? I would argue that since my code does not actually manipulate the filename (I just use the File object that File.listFiles() gives me) then the rename should succeed. Of course I would not expect the file name to be displayed correctly if I printed it out.
    I have reproduced this behaviour with JDK 1.4.2_05 and 1.5.0_04 on Solaris 9.

    Thanks for the info Alan.
    I considered setting the locale in the environment (this sounds like the "correct" fix to me and we might implement it later), but this application shares a WebLogic server with many other applications so we would have to do a huge amount of testing to make sure that the locale change wouldn't break the other apps. In the end I worked around the problem by making the code that generates the filenames in the first place strip out any non-ASCII characters (the names of the files are not critically important).
    Looking forward to JSR-203, in the meantime perhaps a note about this behaviour in the javadoc would be useful.

  • Unicode value of a non-ASCII character

    Suppose, the unicode value of the character ् is '\u094d'.
    Is there any Java function which can get this unicode value of a non-ASCII character.
    char c='्';
    String s=convertToUnicode(c);
    System.out.println("The unicode value is "+ s);
    The unicode value is \u094d
    Thanks in advance

    Ranjan_Yengkhom wrote:
    I have tried with the parameter
    c:\ javac -encoding utf8
    Still I am getting the same print i.e. \u3fIf it comes out as "\u3f" (instead of failing to compile or any other value), then your source code already contains the question mark. So you already saved it wrong and have to re-type it (at least the single character).
    Then I studied one tutorial regarding this issue
    It says that we need to save the java file in UTF-8 format. I have explored most of the editors like netbean, eclipse, JCreator, etc... there is no option to save the java file in UTF-8 format.That's one way. But since that is so problematic (you'll have to remember/make sure to always save it that way and to compile it using the correct switch), the better solution by far is not to use any non-ASCII characters in your source code.
    I already told you two possible ways to achieve that: unicode escapes or externalized strings.
    Also read (just because it's related, essential information and I just posted that link somewhere else).

  • Remove non ascii character

    i need a SQL or Procedure that will search non ascii character  in data and update the data by removing it
    Suppose there is table TABLE1 with Column NAME
    it contain number of row and few has non ascii character eg 'CharacterÄr'
    My sql or procedure should be able to search  'CharacterÄr' and update the row with 'Character'
    i.e. removing the non ascii character 'Ä' from the data

    Okay, in that case:
    SELECT str
    ,      REGEXP_REPLACE ( str
                          , '[^[:cntrl:] -~]'
                          )   AS new_str
    FROM    table_x
    or, to actually change the rows that contain the bad characters:
    UPDATE  table_x
    SET     str = REGEXP_REPLACE ( str
                                 , '[^[:cntrl:] -~]'
                        , '[^[:cntrl:] -~]'

  • Can't get the attachment filename out of a Part (with non ascii characters)

    Hello, all and happy new year :)
    My issue is with non ascii filename in attachments... Yes i've read the FAQ :
    I can't get the filename out of the BodyPart for those kind of attachments
    here's my unit test :
         * contains various parts from various mailer encoded in different ways...
         private enum EncodedFileNamePart{
              OUTLOOK("Content-Type: text/plain;\n name=\"=?iso-8859-1?Q?c'estd=E9j=E0no=EBl=E7ac'estcool.txt?=\" \nContent-Transfer-Encoding: 7bit\nContent-Disposition: attachment;\n filename=\"=?iso-8859-1?Q?c'estd=E9j=E0no=EBl=E7ac'estcool.txt?=\" \n\nnoel 2010\n","c'estdéjànoëlçac'estcool.txt"),
              GMAIL("Content-Type: text/plain; charset=US-ASCII; name=\"=?ISO-8859-1?B?ZOlq4G5v62znYWNlc3Rjb29sLnR4dA==?=\"\nContent-Disposition: attachment; filename=\"=?ISO-8859-1?B?ZOlq4G5v62znYWNlc3Rjb29sLnR4dA==?=\"\nContent-Transfer-Encoding: base64\nX-Attachment-Id: f_giityr5r0\n\namluZ2xlIGJlbGxzIQo=\n","déjànoëlçacestcool.txt"),
              THUNDERBIRD("Content-Type: text/plain;\n name=\"=?ISO-8859-1?Q?d=E9j=E0no=EBl=E7acestcool=2Etxt?=\"\nContent-Transfer-Encoding: 7bit\nContent-Disposition: attachment;\n filename*0*=ISO-8859-1''%64%E9%6A%E0%6E%6F%EB%6C%E7%61%63%65%73%74%63%6F;\n filename*1*=%6F%6C%2E%74%78%74\n\njingle bells!\n","déjànoëlçacestcool.txt"),
              EVOLUTION("Content-Disposition: attachment; filename*=ISO-8859-1''d%E9j%E0no%EBl.txt\nContent-Type: text/plain; name*=ISO-8859-1''d%E9j%E0no%EBl.txt; charset=\"UTF-8\" \nContent-Transfer-Encoding: 7bit\n\njingle bells\n","déjànoël.txt"),
              String content=null;
              String target=null;
              private EncodedFileNamePart(String content,String target){
              public Part get(){
                   ByteArrayInputStream bis = new ByteArrayInputStream(this.content.getBytes());
                   Part part = new MimeBodyPart(bis);
                   return part;
                   catch(Throwable e){
                        return null;
              public String getTarget(){
         public void testJavamailDecode() throws MessagingException, UnsupportedEncodingException{
              System.setProperty("mail.mime.encodefilename", "true");
              System.setProperty("mail.mime.decodefilename", "true");
              for(EncodedFileNamePart part : EncodedFileNamePart.values())
    I take a NullPointerExcepion in the decodeText because getFileName() return null for the EVOLUTION case, and work well with OUTLOOK, THUNDERBIRD and GMAIL.
    Evolution's content type is "Content-Disposition: attachment; filename*=ISO-8859-1''d%E9j%E0no%EBl.txt" wich doesn't look like the other (looks like the RFC 2616 or RFC5987 to do it.)
    How can i handle this situation except by writting my own decoder?
    Thanks for your answers!
    Edited by: user13619058 on 4 janv. 2011 07:44

    Set the System property "mail.mime.decodeparameters" to "true" to enable the RFC 2231 support.
    See the javadocs for the javax.mail.internet package for the list of properties.
    Yes, the FAQ entry should contain those details as well.

  • Non-ASCII character in Email field

    Hi Guys,
    I am trying to enter non-english characters in Email field of user form, but OIM throws an error that "A non-Ascii character has been entered". I have also tried to turn off the AppFirewall Filter in xlConfig.xml file but no help. Is there any way thay I can enter non-Ascii characters in Email field?

    >I have a script that converts a ms word document to text
    then uploads that to a
    >blob field on a mysql db.
    > During the conversion some characters my not be
    recognised. When i then call
    >up the blob for display on the browser...those characters
    show up as unknown
    >characters with a ? or box. Is there a way to
    preg_replace those unknown
    >characters before displaying them.
    What about fixing the encoding problem instead? If chars get
    lost during
    such a transfer
    document->script->database->script->browser it's always
    an encoding problem somewhere down the road.
    The recommendation these days is to use UTF-8, which avoids
    most of
    these old problems. You just have to make sure that your
    documents are
    properly stored as UTF-8 in the database and delivered as
    such to the
    script and the browser, then you don't have to worry about
    special chars
    That's just the general idea. I can't be more specific, since
    I don't
    know your conversion script or the database structure.

  • Error when import file with non-english character

    Hi,<br /><br />I have images file with non-english character (unicode), for example ABC<X>.png where <X> is non-english character such as japanese, chinese, etc.<br /><br />Whenever I want to import the file to After Effects (right click -> import -> file), I always encounter error:<br /><br />Finding file/dir info for the file "C:\...\ABC?.png" -- file not found (-43) (3::30)<br />Can't import file "ABC?.png": unsupported filetype or extension. (0::1)<br /><br />My PC is Windows XP Professional 2002 SP2 English.<br /><br />How to solve this problem?<br /><br />Thanks

    Adjust your system language settings. Proper file name conventions require a consistent Unicode environment, so install the respective foreign language support files or switch the language system-wide. Mixing different zones/ code ranges is always a bad idea. If your system is not in Japanese, AE will always misinterpret the characters and refuse to import. If that's not feasible, simply rename the files.

  • UploadedFile and filenames with non-ascii chars

    I'm using an UploadedFile object in my web app, and all works fine. However, when I try to upload a file, with a filename containing non-ascii chars (e.g. Spanish), I see that the getBytes method returns an empty byte array, the filename is not stored correctly (the non-ascii chars are lost, replaced by another representation), and that the content-type is application/octet-stream instead of image/png as supposed to be.
    If I rename that same file to have only ascii chars - everything is back to normal.
    How can I upload files with non-ascii chars in their name?

    Hi, back! Spent a few hours experimenting and found
    that everything is working great (including the creation
    of international non-ASCII foldernames) when I used
    utf-8 encoding in the sieve filters rules for the
    the match strings and the folder names... at least
    so far so good... for your ref and sorry for bothering.

  • [Solved] no non-ASCII character input in rxvt-unicode

    Hello everyone,
    For some days now, I can't write any non-ASCII characters any more in rxvt-unicode and rxvt-unicode-patched. Unfortunately, downgrading the rxvt-unicode package doesn't seem to help. To have at least a temporary solution, I'd like to know at least which packages I could try to downgrade as well. Any ideas, anyone?
    Last edited by Maximalminimalist (2011-03-12 13:12:26)

    When I try to type a non-ASCII-character I get nothing at all. This happens with my custom keyboard layout (modified programmer dvorak) and in some layouts I already tried (us: altgr-intl, ch, de and fr)
    When I paste a non-ASCII characters in rxvt-unicode I get
    maxmin ~ $ ?
    This happens only on my x86_64 desktop which is more up to date than my i686 laptop. (I'm afraid now to do any updates.)
    EDIT: I'm sorry, I don't know what you mean with locale settings. What do you mean with that?
    EDIT2: Maybe just typing locale in the terminal is what you mean:
    maxmin ~ $ locale
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    With other terminal emulators I get sometimes also nothing and sometimes right displayed but wrong interpreted character in vim. I didn't take notes while doing that but I'll try again if needed.
    Last edited by Maximalminimalist (2011-03-06 21:51:23)

  • Cannot connect to WPA network with non-ascii password

    In my office somebody thought it would be a good idea to encrypt the wireless network with a WPA password containing a non-ascii character. It is fine by the WPA2 standards, but the airport password prompt doesn't allow me to introduce suche characters.
    I have also tried to put the password directly in Keychain but it didn't work either. Besides, I tried the /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resourc es/airport utility and it also didn't work.
    Any ideas, experiences, comments??
    Thanks a lot

    Anyway, it seems strange to me this limitation the Apple airport utility and that there is no command line way to overcome this "UI problem".
    It appears that OSX is enforcing WPA Personal's "no non-ASCII" rule, whereas Windows isn't.
    There may be a command-line fix, but I don't know what it might be.

  • Filling clob with non ascii characters

    I have had some problems with clobs and usage of german
    umlauts (����). I was'nt able to insert or update
    strings containing umlaute in combination with string
    binding. After inserting or updating the umlaut
    characters were replaced by strange (spanish) '?'
    which were upside down.
    However, it was working when I did not use string bindung.
    I tried varios things, after some time I tracked
    the problem down to to In the
    prepareStatement(...) you find something
    ByteArrayInputStream inputStream = new ByteArrayInputStream(((String) parameter).getBytes());
    // Binding starts with a 1 not 0.
    statement.setAsciiStream(index + 1, inputStream,((String) parameter).getBytes().length);
    I replaced the usage of ByteArrayInputStram with CharArrayReader:
    // TH changed, 26.11.2003, Umlaut will not work with this.
    CharArrayReader reader = new CharArrayReader(((String) parameter).toCharArray());     
    statement.setCharacterStream(index + 1, reader, ((String) parameter).length() );
    and this worked.
    Is there any other way achieving this? Did anyone
    get clobs with non ascii characters to work?
    Regards -- Tobias
    (Toplink 9.0.3, Clob was mapped to String, Driver was Oracle OCI)

    I don't think the console font is the problem. I use Lat2-Terminus16 because I read the Beginner's Guide on the wiki while installing the system.
    My /etc/vconsole.conf:
    showconsolefont even shows me the characters missing in the file names; e.g.: Ö, Ä, Ü

  • Is Linksys WRT54GH SSID can contains the non-ascii character?

    is Linksys WRT54GH SSID can contains the non-ascii character?
    we need to use it for our wireless testing, but i dont know if the SSID can contains non-ascii.
    anybody can help me? hurry, i will wait answer online.
    thanks in advance!
    Go to Solution.

    thank you  very much, Ricewind
    SSID cant contain non-ascii characters, it make me sad and disappointed
    why we can  set T-link router SSID with non-ascii characters?

Maybe you are looking for

  • "Maximum Render Quality" Better to turn it OFF when using CUDA MPE? "IMPORTANT NOTE ABOUT RENDERING TIME:  Make sure you do not select “Use  Maximum Render Quality” if you are utilizing the accelerated GPU  graphics (Mercury Playback Engine).  This will not improv

  • ASCII format while loading flat files.

    Hi, Please tell me, if i want to load a flat file of ASCII format instead of CSV, what shoud be the format of the ASCII file is it text document or something else? please send me a sample file. and what will be the values for this? and are these mand

  • Cannot make program start with systemd

    Hello there, as a newby i am slowly getting to grips with Arch Linux, but I cannot resolve the following after trying for some time. I have ArchLinux running on a Raspberry PI. I have a programme called aprx installed and to run it, I execute /sbin/a

  • G5 Dual 2GHz refuses to boot on AirPort Extreme Card Installation?

    I was wondering if anyone has heard of this before. I just got an AirPort Extreme Card from Apple that has been refurbished. I installed it in my G5 and then on power-on, the system hangs before the chime even sounds? I remove it and everything is ba

  • My mac and i phone can't connect

    hej i need help, my macbook pro and my iphone can't connect ? i just got my iphone 4 so i can't open it before i sync. with my mac and i have 2 usb ports, but if i use the first one it shots my computer down and the other one does't react ? any help