ANSI for UTF-8

Hi,
We are recieving files as ANSI for UTF-8 and when we get this file from MQ JMS adapter we get the message: com.sap.aii.utilxi.misc.api.BaseRuntimeException:Invalid byte 2 of 2-byte UTF-8.
If we manually convert file to UTF-8 it works ok.
We are using CCSID 1143 adn we tried others to like 1208, 1140.
Any help appriciated.
Tony

was a server problem, not SAP

Similar Messages

  • What is the best way to import an ANSI as UTF-8 Text file using the import wizard

    I'm using SQL Server 2008 and am trying to import a flat txt file that is ANSI as UTF-8 and keep getting error after error on different fields.  I'm wondering if there is a series of settings that will give me the best chance of importing this
    file.  I've inserted a a sample that you can look at.
    The row delimiters are SOH and CR LF
    Column delimiters are Pipe
    This is one record
    01|KSB|266916|5/1/2008 0:00:00|9.69|03|OUT|KSB|3|13429|5/1/2008 0:00:00|9.69|5/1/2008 0:00:00|14.56|C|January 28, 200810:47 am Called MARCI from EHRLICH, JERRY S M.D. marci will callme back if she needs any boostrix. She was very busy.Copied: 01/28/08
    10.80Copied: 02/28/08 12.53Copied: 03/05/08 10.67  Completion memo:PREBOOKED FLU ALREADY WITH ANOTHER SUPPLIER. NO NEED FOR ANYTHING TODAY.Copied: 04/04/08  9.44  Completion memo:placed order 4/1/08Copied:
    05/01/08 14.56  Completion memo:call marci tomorrow|N|N|||||||||N|0
    Anytime you see 01| it's the next record
    01|KSB|266923|5/1/2008 0:00:00|9.70|03|OUT|KSB|3|6784|5/1/2008 0:00:00|9.70|5/1/2008 0:00:00|12.74|C|July 25, 200704:29 pm Called MARK from INFECTIOUS DISEASE spokt to mark nn. thought he prebooked with us. No order but I sent him FFCopied: 07/25/07
    16.50Copied: 10/25/07 15.58Copied: 11/19/07 15.57Copied: 12/04/07 16.08Copied: 01/04/08  9.48Copied: 01/30/08 15.23Copied: 02/25/08 16.53Copied: 03/11/08 10.98Copied: 04/04/08  9.45 
    Completion memo:placed order 4/1/04Completed: 05/01/08 12.74  Completion memo:placed order today for meds|N|N|||||||||N|0
    01|KSB|266935|4/4/2008 0:00:00|9.75|03|OUT|KSB|3|77377|4/4/2008 0:00:00|9.75|4/4/2008 0:00:00|9.60|C|(History Copy)FDA NEWS FLASH from Seacoast MedicalFeds Prescribe "new recipe" for Flu Shot
    Copied: 03/05/08 11.20Copied: 04/04/08  9.50  Completion memo:flu rep called todayCompleted: 04/04/08  9.60  |N|N|||||||||N|0
    01|KSB|267768|5/30/2008 0:00:00|15.01|03|OUT|KSB|3|6401|5/30/2008 0:00:00|15.01|5/30/2008 0:00:00|10.24|C|July 23, 200710:40 am Called LIZ from MAIN STREET FAMILY HEALTH spoke with Liz and she said to fax her ff menactra and adacel pricingCopied:
    09/27/07 14.88Copied: 11/06/07 11.23  Completion memo:left msg for Liz to call me if she needs anything today.Copied: 11/27/07 10.75  Completion memo:No need for anything today.Copied: 01/28/08 15.30  Completion
    memo:LEFT MSG FOR LIZ TO CALL ME IF SHE NEEDS ANYTHIN TODAY.Copied: 02/29/08 12.66Copied: 04/07/08 14.76  Completion memo:spoke to liz says she orders from mckesson but I can fax her pricing.Copied: 05/30/08 10.24 
    |N|N|||||||||N|0
    01|KSB|267880|5/7/2008 0:00:00|15.93|03|OUT|KSB|3|13649|5/7/2008 0:00:00|15.93|5/12/2008 0:00:00|12.73|C|July 11, 200704:17 pm Called INGA from ASSOCIATES IN FAMILY PHYSICIAN left msg on vm about Mnactra and AdacelCopied: 07/11/07 16.30Copied:
    08/06/07 14.89Copied: 10/25/07 14.37Copied: 11/27/07 16.37  Completion memo:left msg for denise to call me if she needs anything today.Copied: 01/04/08 11.47  Completion memo:left msg for Denise to call me if she needs
    anything today.Copied: 02/05/08 11.66  Completion memo:LEFT MSG FOR D HUNT ABOUT FLU AND OTHER MEDS.Copied: 03/10/08 11.33Copied: 04/07/08 15.68  Completion memo:lef msg on vm to see if she needs anything. faxing her 
    pricingCopied: 05/12/08 12.73  Completion memo:LEFT MSG FOR DEBBIE TO CALL ME IF SHE NEEDS ANYTHING TODAY.|N|N|||||||||N|0
    01|KSB|267942|5/7/2008 0:00:00|16.41|03|OUT|KSB|3|16945|5/7/2008 0:00:00|16.41|5/7/2008 0:00:00|14.81|C|January 8, 200811:10 am Called MARY from INTERNAL MEDICINE PHYSICIANSCopied: 01/09/08 12.44Copied: 03/31/08 10.84  Completion memo:Sent
    email that nail clippers are in.Copied: 04/07/08 16.16  Completion memo:PLACED 3 ORDERS ON 4/7/08Copied: 05/07/08 14.81  Completion memo:ORDER PLACED 5/1/08|N|N|||||||||N|0
    01|KSB|267949|4/21/2008 0:00:00|16.44|02|OUT|KSB|3|11700|4/21/2008 0:00:00|16.44|4/22/2008 0:00:00|9.79|C|March 4, 200802:35 pm Called DEBBIE/Gail from BURKERT,THOMAS S. ,MD SPOKE TO DEBBIE AND SHE SAID TO FAX HER PREBOOK FORMCopied: 03/04/08 14.60Copied:
    04/07/08 16.19Completed: 04/22/08  9.79  Completion memo:PREBOOKED FLU ON 4/8/08|N|N|||||||||N|0
    01|KSB|269137|5/9/2008 0:00:00|15.29|03|OUT|KSB|3|16489|5/9/2008 0:00:00|15.29|5/13/2008 0:00:00|10.51|C|July 17, 200709:47 am Called MICHAEL from MEDICAL ASSOCIATES DANBURY HOSCopied: 10/26/07 14.64Copied: 11/28/07 15.16  Completion memo:LEFT
    MSG FOR MICHAEL TO CALL ME IF SHE NEEDS ANYTHING.Copied: 0101|KSB|270740|4/14/2008 0:00:00|16.42|03|OUT|KSB|3|2224|4/11/2008 0:00:00|16.42|4/14/2008 0:00:00|14.07|C|April 11, 200804:10 pm Called BECKI from AHC - WOMEN'S HEALTH CARE BECKI IS OFF TODAY.
    CAAL BACK 4/14/08Copied: 04/14/08 14.07  Completion memo:ORDER PLACED 4/9/08|N|N|||||||||N|0
    anything today|N|N|||||||||N|0
    01|KSB|270816|5/14/2008 0:00:00|9.26|03|OUT|KSB|3|12320|5/14/2008 0:00:00|9.26|5/14/2008 0:00:00|10.78|C|August 7, 200710:35 am Called DR. from ALIG, HOWARD M., MD INC SPOKE WITH KATHY FOR A 3RD TIME. SAYS SHE  OPEN THE BOX AND WAS MISSING ONE VIAL OF
    DEPO-TESTOSTERONE. BOB AND DIANE CHECK IT OUT AND ALL DEPO QUANTATIES SENT OUT THAT DAY ALL MATCHED UP, AND THEY SHOULD OF GOT 3 VIALS. KATHY SAID SHE WOULDNT LIE AND COULDN'T USE THEM FOR HERSELF. TOLD HER I DO CFA AS PER DCF. SHE SAID OK.Copied:
    08/07/07 10.66Copied: 10/26/07  9.79  Completion memo:left msg for kathy to call me if she needs anythingCopied: 11/27/07 10.38 LEFT MSG TO SEE IF SHE NEEDS ANYTHING.Copied: 01/10/08  8.76 TOLD KATHY TO CALL ME IF
    SHE NEEDS ANYTHING TODAY.Copied: 03/10/08 15.69  Completion memo:SPOKE WITH RECPT AND SAID TO FAX HER UPDATED PRICING.Copied: 04/14/08  9.01  Completion memo:spoke with kathy's recpt and she said to fax over pricing.Copied:
    05/14/08 10.78  Completion memo:KATHY NOT IN. CALL BACK TOMORROW|N|N|||||||||N|0
    01|KSB|270822|5/14/2008 0:00:00|9.27|03|OUT|KSB|3|2213|5/14/2008 0:00:00|9.27|5/14/2008 0:00:00|11.49|C|March 6, 200809:52 am Called KELLY from MICHELS, DALE E MD CALL KELL TOMORROW AT 402 488-7400Copied: 03/06/08  9.88Copied: 03/10/08
    15.70Copied: 04/14/08  9.02  Completion memo:placed order 3/26/08Copied: 05/14/08 11.49  Completion memo:placed order 5/14/08|N|N|||||||||N|0
    01|KSB|270830|4/14/2008 0:00:00|9.30|03|OUT|KSB|3|6250|4/14/2008 0:00:00|9.30|4/14/2008 0:00:00|10.75|C|September 19, 200709:54 am Called TINY from WANG, SHIUSH C.  MD SPOKE TO TINY. NO NEED FOR ANYTHING TODAYCopied: 09/19/07  9.91Copied:
    11/05/07  9.65 NO NEED FOR ANYTHING TODAYCopied: 11/05/07  9.66Copied: 12/12/07 15.58Copied: 01/04/08 14.12Copied: 01/14/08 14.76  Completion memo:SPOKE TO TINY. NO NEED FOR ANYTHING TODAY.Copied:
    02/20/08 11.18  Completion memo:LEFT MSG FOR TINY TO CALL ME IF SHE NEEDS ANYTHING.Copied: 03/27/08 10.19  Completion memo:PLACED ORDER 3/12/08Copied: 04/14/08  9.05  Completion memo:placed order 3/28/08Copied:
    04/14/08 10.75  |N|N|||||||||N|0
    01|KSB|270839|5/5/2008 0:00:00|9.39|03|OUT|KSB|3|6987|4/24/2008 0:00:00|9.39|5/5/2008 0:00:00|9.59|C|October 10, 200708:55 am Called Karen from FAMILY MEDICINE OF GREENHILL SPOKE TO LYNETTE AND SHE SAID FAX HER THE PREBOOK FORM FOR FLUVIRIN.Copied:
    10/10/07  8.94Copied: 11/09/07 11.37Copied: 12/18/07 14.89Copied: 01/18/08 10.45 SPOKE TO LYNETTE. NO NEED FOR ANYTHING TODAYCopied: 02/22/08 11.17Copied: 03/28/08 10.32  Completion memo:CALL BACK 4/12/08Copied:
    04/14/08  9.14  Completion memo:spoke with rep 4/3/08Copied: 05/05/08  9.59  |N|N|||||||||N|0
    01|KSB|270841|4/23/2008 0:00:00|9.40|03|OUT|KSB|3|2224|4/23/2008 0:00:00|9.40|4/23/2008 0:00:00|11.26|C|September 14, 200702:18 pm Called BECKI from AHC - WOMEN'S HEALTH CARE Spoke to Sue. No need for anything todayCopied: 09/14/07 14.31Copied:
    11/05/07 10.59Copied: 11/05/07 11.23Copied: 12/12/07 15.82Copied: 01/11/08 16.24  Completion memo:CALL BACK 1/14/08Copied: 01/14/08 15.27  Completion memo:left msg for Sue to call me if she needs anythingCopied:
    02/20/08 14.43  Completion memo:spoke to becky. no need for anythingCopied: 03/27/08 11.89Copied: 03/31/08 01|KSB|270876|5/14/2008 0:00:00|9.87|03|OUT|KSB|3|81523|5/14/2008 0:00:00|9.87|5/14/2008 0:00:00|11.74|C|March 26, 200802:26
    pm Called Kathy from FRONTIER HEALTHCARE RECPT GAVE CATHY THE MSG YESTRDAY ABOUT THE CORRECT EMAIL ADDRESS(dcf). SHE IS WITH A PATIENT AND WILL CALL BACK.Copied: 03/26/08 14.46Copied: 04/14/08  9.62  Completion memo:placed order
    4/08/0/8Copied: 05/14/08 11.74  Completion memo:PLACED ORDER 5/6/08|N|N|||||||||N|0
    memo:PLACED ORDER 4/21/08|N|N|||||||||N|0
    01|KSB|270887|5/5/2008 0:00:00|9.89|03|OUT|KSB|3|6526|5/5/2008 0:00:00|9.89|5/6/2008 0:00:00|10.46|C|July 13, 200709:49 am Called ANU from SIRIKONDA, PURNACHANER  MD ANU ON VACY UNTIL 7/26. FAXED JUY/AUG SPECIALCopied: 07/13/07  9.82Copied:
    08/07/07 14.84  Completion memo:SPOKE TO ANU AND SHE SAID SEND HER INFO ON FLU AND OTHER VACCINESCopied: 10/29/07 11.08  Completion memo:No need for anything today.Copied: 12/04/07 10.69  Completion memo:CALL BACK
    AFTER 3PCopied: 12/12/07 14.34  Completion memo:ANU SAID NO NEED FOR ANYTHING TODAY.Copied: 01/11/08 15.78  Completion memo:NO NEED. SEND PRICING ON MED SUPPLIESCopied: 01/14/08 15.20Copied: 02/21/08 
    9.45Copied: 03/26/08 14.52 CALL BACK NEXT MONTHCopied: 04/14/08  9.64  Completion memo:placed order 4/4/08Copied: 05/06/08 10.46  |N|N|||||||||N|0
    01|KSB|270912|4/14/2008 0:00:00|10.27|03|OUT|KSB|3|2229|4/14/2008 0:00:00|10.27|4/14/2008 0:00:00|10.03|C|October 12, 200711:25 am Called BETTY from HEALTH CARE PROFESSIONALS they will call back if they need any flu vaccineCopied: 10/12/07 11.42Copied:
    11/12/07  9.37  Completion memo:Spoke to Betty. No need for anything today.Copied: 12/04/07 16.10Copied: 01/04/08 14.22Copied: 02/14/08 11.28Copied: 03/24/08 10.00  Completion memo:placed ordered 3/14/08Copied:
    04/14/08 10.02  Completion memo:betty said no need today. Fax scaleCopied: 04/14/08 10.03  Completion memo:placed order for scale|N|N|||||||||N|0
    01|KSB|270914|5/14/2008 0:00:00|10.28|03|OUT|KSB|3|2229|5/14/2008 0:00:00|10.28|5/14/2008 0:00:00|11.80|C|October 12, 200711:25 am Called BETTY from HEALTH CARE PROFESSIONALS they will call back if they need any flu vaccineCopied: 10/12/07 11.42Copied:
    11/12/07  9.37  Completion memo:Spoke to Betty. No need for anything today.Copied: 12/04/07 16.10Copied: 01/04/08 14.22Copied: 02/14/08 11.28Copied: 03/24/08 10.00  Completion memo:placed ordered 3/14/08Copied:
    04/14/08 10.02  Completion memo:betty said no need today. Fax scaleCopied: 04/14/08 10.03  Completion memo:placed order for scaleCopied: 05/14/08 11.80  Completion memo:PLACED ORDER 5/08/0/8|N|N|||||||||N|0
    01|KSB|270944|4/14/2008 0:00:00|10.59|03|OUT|KSB|3|1387|4/14/2008 0:00:00|10.59|4/14/2008 0:00:00|10.45|C|December 3, 200710:54 am Called PAT from NEBRASKA SPINE CENTER LLP SPOKE TO PAT. NO NEED FOR ANYTHING TODAY.Copied: 12/03/07 10.90Copied:
    01/04/08 13.74Copied: 01/17/08 10.68Copied: 02/13/08 10.86Copied: 03/14/08 10.69  Completion memo:SPOKE WITHE BRENDA 3/5/08Copied: 04/14/08 10.34  Completion memo:LEFT MSG FOR PAT TO CALL ME IF SHE NEEDS ANYTHING.
    FAXED SCALE INFO.Copied: 04/14/08 10.45  Completion memo:spoke to Pat no need today. Fax her scale pricing.|N|N|||||||||N|0
    01|KSB|270960|5/14/2008 0:00:00|10.71|03|OUT|KSB|3|1387|5/14/2008 0:00:00|10.71|5/14/2008 0:00:00|11.81|C|December 3, 200710:54 am Called PAT from NEBRASKA SPINE CENTER LLP SPOKE TO PAT. NO NEED FOR ANYTHING TODAY.Copied: 12/03/07 10.90Copied:
    01/04/08 13.74Copied: 01/17/08 10.68Copied: 02/13/08 10.86Copied: 03/14/08 10.69  Completion memo:SPOKE WITHE BRENDA 3/5/08Copied: 04/14/08 10.34  Completion memo:LEFT MSG FOR PAT TO CALL ME IF SHE NEEDS ANYTHING.
    FAXED SCALE INFO.Copied: 04/14/08 10.45  Completion memo:spoke to Pat no need today. Fax her scale pricing.Copied: 05/14/08 11.81  Completion memo:PLACED ORDER 5/9/08|N|N|||||||||N|0
    01|KSB|271011|5/14/2008 0:00:00|10.98|03|OUT|KSB|3|12692|5/14/2008 0:00:00|10.98|5/14/2008 0:00:00|9.74|C|September 19, 200709:43 am Called JANET from FAMILY PRACTICE G01|KSB|271065|5/14/2008 0:00:00|11.33|03|OUT|KSB|3|82059|5/14/2008 0:00:00|11.33|5/14/2008
    0:00:00|12.00|C|December 4, 200702:29 pm Called Karen from HENRIETTA JOHNSON MEDICAL CTR LEFT MSG FOR KAREN TO CALL ME IF SHE NEEDS ANYTHING.Copied: 12/04/07 14.49Copied: 01/04/08 14.20Copied: 01/11/08 15.60  Completion memo:number
    is disconnectedCopied: 03/13/08 11.68  Completion memo:placed orderCopied: 04/14/08 11.08  Completion memo:faxed over pricing on scale and April special.Copied: 05/14/08 12.00  Completion memo:FLU REP CALLED
    5/14/08|N|N|||||||||N|0
    mo:PLACED ORDER 3/12/08Copied: 04/14/08  9.05  Completion memo:placed order 3/28/08Copied: 04/14/08 10.75 placed order 4/08/08Copied: 05/08/08  9.47  Completion memo:PLACED ORDER 5/2/08|N|N|||||||||N|0
    01|KSB|271245|5/14/2008 0:00:00|14.27|03|OUT|KSB|3|82241|5/14/2008 0:00:00|14.27|5/14/2008 0:00:00|16.15|C|December 5, 200708:49 am Called TERESA from COVENANT CLINIC MEDICAL ASSOC CALL BACK 12/7Copied: 12/05/07  8.82Copied: 01/18/08 
    9.19  Completion memo:LEFT MSG FOR TERESA TO CALL ME IF SHE NEEDS ANYTHING TODA7Y.Copied: 02/04/08 15.79 CB 2/5/08Copied: 02/28/08 14.28  Completion memo:SPOKE WITH MARC AND HE IS FAXING OVER DEA LICENSESCopied:
    03/11/08  8.83  Completion memo:PLACING ORDER ONLINE.Copied: 04/14/08 14.02  Completion memo:NO NEED FOR ANYTHING RIGHT NOW.Copied: 05/14/08 16.15  Completion memo:Spoke with Marcus Sowinski, who took over Marc
    Simpsons place. Said he will go on the website and check our pricing. I will call hin in 2 weeks to see if he needs anything, or if he needs help.|N|N|||||||||N|0
    01|KSB|271293|4/18/2008 0:00:00|14.71|03|OUT|KSB|3|11658|4/18/2008 0:00:00|14.71|4/21/2008 0:00:00|9.73|C|September 14, 200710:32 am Called CECILIA from MEDHEALTH-SGP LEFT MSG FOR CECILIA TO CALL ME IF SHE NEEDS ANYTHING.Copied: 09/14/07 10.54Copied:
    11/02/07 11.28Copied: 12/03/07 15.09  Completion memo:LEFT MSG FOR CECILIA TO CALL ME IF SHE NEEDS ANYTHING.Copied: 01/04/08 10.75Copied: 01/30/08 15.29Copied: 03/03/08 13.83  Completion memo:Sent email to
    see if they need anything.Copied: 03/28/08 14.28  Completion memo:emailed formulariesCopied: 04/14/08 14.46Copied: 04/21/08  9.73  Completion memo:left msg for Cecilia to call me if she needs anything today.|N|N|||||||||N|0
    01|KSB|271352|5/14/2008 0:00:00|15.55|03|OUT|KSB|3|11520|5/14/2008 0:00:00|15.55|5/15/2008 0:00:00|10.29|C|October 18, 200709:35 am Called Amy from ATRIUM OB/GYN LEFT MSG FOR AMY TO SEE IF THEY NEED ANYMORE FLU VACCINE.Copied: 10/18/07  9.60Copied:
    11/26/07 14.17  Completion memo:LEFT MSG FOR AMY TO CALL ME IF SHE NEEDS ANYMORE FLU VACCINE.Copied: 01/09/08 14.73  Completion memo:left msg for Amy to call me if she needs anything today.Copied: 02/15/08  9.10 
    Completion memo:LEFT MSG FOR AMY TO CALL ME IF SHE NEEDS TO PREBOOK FLU VACCINE.Copied: 03/14/08 10.89  Completion memo:LEFT MSG ABOUT M/S.Copied: 04/14/08 15.30  Completion memo:spoke to amy. No need for anything today
    but fax her scale info.Copied: 05/15/08 10.29  Completion memo:left msg for any to call me if she needs anything today.|N|N|||||||||N|0
    01|KSB|271550|4/16/2008 0:00:00|10.49|03|OUT|KSB|3|15520|4/16/2008 0:00:00|10.49|4/18/2008 0:00:00|10.26|C|March 5, 200810:01 am Called Marty from AICHELE & FREY FAMILY PRACTICE LEFT MSG ON MARTI'S VM TO SEE IF SHE WANTS TO PREBOOK FLU. FAXED FF.Copied:
    03/10/08 10.48  Completion memo:cbCopied: 04/15/08 10.24  Completion memo:marty off today. call back tomorrow.Copied: 04/18/08 10.26  Completion memo:SPOKE WITH MARTY. NO NEED FOR ANYTHING TODAY.|N|N|||||||||N|0
    Thanks!

    For this I think you may be better off creating SSIS package from Business Intelligence Development Studio rather than using Export Import wizard. You need to convert the code page of columns from 1252 to 65001 for saving it to UTF 8 file. In SSIS you
    can use a derived column task for that.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • ConvertToClob and byte order mark for UTF-8

    We are converting a blob to a clob. The blob contains the utf-8 byte representation (including the 3-byte byte order mark) of an xml-document. The clob is then passed as parameter to xmlparser.parseClob. This works when the database character set is AL32UTF8, but on a database with character set WE8ISO8859P1 the clob contains an '¿' before the '<'AL32UTF8');
    I would assume that the ConvertToClob function would understand the byte order mark for UTF-8 in the blob and not include any parts of it in the clob. The byte order mark for UTF-8 consists of the byte sequence EF BB BF. The last byte BF corresponds to the upside down question mark '¿' in ISO-8859-1. Too me, it seems as if ConvertToClob is not converting correctly.
    Am I missing something?
    code snippets:
    l_lang_context number := 1;
    dbms_lob.createtemporary(l_file_clob, TRUE);
    dbms_lob.convertToClob(l_file_clob, l_file_blob,l_file_size, l_dest_offset,
                                       l_src_offset, l_blob_csid, l_lang_context, l_warning);
    procedure fetch_xmldoc(p_xmlclob in out nocopy clob,
                                       o_xmldoc out xmldom.DOMDocument) is
    parser xmlparser.Parser;
    begin
      parser := xmlparser.newParser;
      xmlparser.parseClob(p => parser, doc => p_xmlclob);
      o_xmldoc := xmlparser.getDocument(parser);
      xmlparser.freeParser(parser);
    end;The database version is 10.2.0.3 on Solaris 10 x86_64
    Eyðun
    Edited by: Eyðun E. Jacobsen on Apr 24, 2009 8:58 PM

    can this be of some help? http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions027.htm#SQLRF00620
    Regards
    Etbin

  • Printing UTF-8 text via command line (i.e. 10.5-ready enscript for UTF-8)

    Hello,
    (I asked this question in the Leopard discussion section, but was advised to use this forum.)
    I am using some terminal-based tools like Alpine and Vim, both with UTF-8 text encoding. Printing, however, is a problem, because the UTF-8 characters are not correctly printed. For Alpine I use enscript, but it does not support UTF-8. (Currently I convert UTF-8 to latin1 first using iconv before sending it to enscript, but special characters get lost that way.) For Vim I use CUPS-PDF, a virtual PDF printer, but also here UTF-8 characters does not make it (even though CUPS-PDF works for UTF-8 in Cocoa apps).
    Paps as an alternative to enscript may work, but I don't want to spend much time currently installing all necessary libraries.
    I am wondering if I can use Leopard's printing natively. *Is there a command line tool ready for OS 10.5 that accepts UTF-8 text and converts it to PS/PDF or sends it directly to a selected printer queue?*
    Thanks!

    I think you can use enscript for 8 bit code. You just have to set the option. if you check the users guide you may be able to use an option to honor 8 bit code. I haven't tried it, but my .enscriptrc looks like
    cat .enscriptrc
    # GNU Enscript configuration file.
    # Author: Stanley Williams
    # Local Version
    # How characters greater than 127 are printed:
    # 1 generate clean 7-bit code; print characters greater than 127
    # in the backslash-octal notation `\xxx' (default)
    # 0 generate 8-bit code
    Clean7Bit: 1
    # Default input encoding.
    # DefaultEncoding: mac
    # Default output media.
    DefaultMedia: Letter
    # Media definitions:
    # name width height llx lly urx ury
    Media: Legal 612 1008 24 24 588 984
    Media: Letter 612 792 36 36 576 756
    # Pass following Page Device options to the generated output.
    # Duplex printing.
    SetPageDevice: Duplex:true
    Hope this helps.

  • Char set conversion for UTF-7

    Hi,
    I am working on Char set conversion to and from UTF-7. However I cannot find and ChatToByte classes for UTF-7 in i18n.jar . Any ideas as how to proceed further with this issue. I feel that there must be a way since UTF-7 is a pretty popular charset especially in emails.
    Thanx in advance.
    Khurram

    Hi Khurram,
    I don't know if this will help but see this thread:
    http://forums.java.sun.com/thread.jsp?forum=16&thread=25613
    regards,
    Joe

  • Problem writing file ANSI to UTF-8. OPEN DATASET FOR OUTPUT IN TEXT MODE

    Hello everybody,
    My report needs  to create a file in ANSI so I am using this sentence: * "OPEN DATASET p_dir_a FOR OUTPUT IN TEXT MODE ENCODING DEFAULT."*  almost all charters in the file are well generating excepting for this two: ( Á ) & ( Í ) because SAP assigns the same code to both characters ( Ã? ) = 'xC3'  which is not correct, the right code should be ( Á ) = 'xC1'  ( Í ) = 'xCD' respectively
    from this string = ( ÁÉÍÓÚáéíóúàèìòùÀÈÌÒÙ ) only those two characters are wrong converted.
    Also I tray to catch a conversion error with this sentence:
              TRY.
                TRANSFER <field> TO p_dir_a NO END OF LINE.
              CATCH cx_sy_conversion_codepage.
                MESSAGE 'error' type 'I'.
            ENDTRY.
    but never enters in it.
    Does anyone know where I can configure SAP to SET this value correctly?
    Thanks for your help.

    was a server problem, not SAP

  • Convert data from ANSI to UTF-8 format

    Hello,
    We have data in ANSI format (binary) which we need to convert into UTF-8 format. We are able to do it using FM's GUI_UPLOAD and GUI_DOWNLOAD but as the amount of data is huge we are planning to get the conversion done using background job. But, we are not able to get it yet. Can anybody suggest ways to resolve this? Can class CL_ABAP_CONV_X2X_CE be used for the same?
    Thanks...
    With Regards,
    Mukul Kulkarni

    Hello,
    If you have the data in Binary mode, you can use the addition IN BINARY MODE while uploading.
    For downloading in UTF-8, you can use the addition TEXT MODE ENCODING UTF-8.
    BR,
    Suhas

  • SSIS: Change Code page 1252 ANSI to UTF-8 65001

    Hi All;
    I have created SSIS Package to import data from OLE DB to a flat file. The code page in the flat file connection manager was set to default
    1252 ANSI - Latin I. Now I have been asked to output the flat file in
    UTF-8 format. I have changed the code page to 65001 UTF-8 but the package will not run. I got the following message:
    the code page on input column COLUMN_NAME (184)is 1252 and is required
    to be 65001
    I have searched around and i have read that i need to change the column data type from
    VARCHAR to NVARCHAR!! Is this the solution?
    Is there is any other option? Thanks.

    Hello Guys,
    i am having the same problem but none of the proposed solutions work for me. the thing is that my source DB is an SQL server DB table that contains Arabic fields the code page of the Source is 1256. 
    my destination DB is an SQL Compact Edition (with nvarchar fields) the destination page is 1252 
    if i use SSIS to import Data to the compact DB the arabic fields in the source Arabic destination appear rubbish 
    if i set AlwaysUseDefaultCodePage to true, an error occurs (cannot be processed
    because more than one code page (1252 and 1256) are specified for it )
    Please Help!!

  • Conversion of XML file from ANSI to UTF-8 encoding in SAP 4.6C

    Hi All,
      Im working on SAP 4.6C version.I have generated a XML file from my custom report.It is downloading in ANSI format.But i need to download this into UTF-8 format.So can anyone please let me know how to do this?
    Is this possible in 4.6C version?
    Thanks in Advance,
    Aruna A N

    Hello
    It is possible in 4.6.
    Try this code:
    REPORT Z_TEST_XML_DOWN .
    data:
      lp_ixml type ref to if_ixml,
      lp_xdoc type ref to if_ixml_document,
      lp_sfac type ref to if_ixml_stream_factory,
      lp_ostr type ref to if_ixml_ostream,
      lp_rend type ref to if_ixml_renderer,
      lp_enco type ref to if_ixml_encoding.
    data:
      lp_root type ref to if_ixml_element,
      lp_coll type ref to if_ixml_element,
      lp_elem type ref to if_ixml_element.
    class cl_ixml definition load.
    data:
    udat like lfa1,
    s type string.
    select single * from lfa1 into udat where lifnr = '0000000001'. " <- set here real number
    *** create xml
    lp_ixml = cl_ixml=>create( ).
    lp_xdoc = lp_ixml->create_document( ).
    lp_root = lp_xdoc->create_simple_element( name = 'Node'
                                              parent = lp_xdoc ).
    s = udat-land1.
    call method lp_root->set_attribute( name = 'country_name'
                                        value = s ).
    s = udat-name1.
    call method lp_root->set_attribute( name = 'vendor_name'
                                        value = s ).
    s = udat-ort01.
    call method lp_root->set_attribute( name = 'city_name'
                                        value = s ).
    *** render xml
    types: begin of xml_tab_line,
             line(256) type x,
           end of xml_tab_line.
    types: xtab type table of xml_tab_line.
    data: t_xml type xtab,
          size type i,
          rc type i.
    lp_sfac = lp_ixml->create_stream_factory( ).
    lp_ostr = lp_sfac->create_ostream_itable( table = t_xml ).
    lp_enco = lp_ixml->create_encoding( character_set = 'utf-8'
                                   byte_order = if_ixml_encoding=>co_none ).
    call method lp_ostr->set_encoding( encoding = lp_enco ).
    lp_rend = lp_ixml->create_renderer( ostream = lp_ostr
                                        document = lp_xdoc ).
    rc = lp_rend->render( ).
    *** export to file
    size = lp_ostr->get_num_written_raw( ).
    call function 'WS_DOWNLOAD'
      exporting
        bin_filesize = size
        filename = 'c:\sapxml_test.xml'
        filetype = 'BIN'
      tables
        data_tab = t_xml
      exceptions
        others = 1.
    It is just simple example.

  • Cannot change font for UTF-8 pages in FF 4.0.1

    No matter whether I change Options > Content > Default font, or go to Options > Content > Advanced and set Sans Serif for Other Languages, nothing changes—for instance, on this forum. Everything's still Times New Roman from the looks of it.
    The Sans Serif font for Other Languages is set to Arial.
    There's no Unicode entry in the list. The Other Languages is the closest I could find.
    I have Options > Content > Advanced > Allow pages to choose their own fonts… unchecked.
    I made similar changes for Western, and that worked—for pages detected as having ISO-8859-1 encoding.
    Is this a bug? Or am I doing something wrong?
    <rant>
    On a more general note, I think that the font setup in Firefox is so over-complicated. I personally want all my pages in a single font, and I don't care if some weird languages are displayed incorrectly with it. I bet that most people do want the same, even them who speak those weird languages. It's just a matter of picking one font that works for the languages you care about.
    Now that might not work perfectly for everybody so there should be an advanced option—an ability to add overrides. It should be similar to how it works now but the list of overrides should be user-customizable and '''empty by default.''' So that we regular people don't bother ourselves with encodings and languages we're never going to use.
    I wonder if I'm the only one who's disappointed with FF's font settings. Couldn't find anything on this topic on the 'net.
    </rant>

    '''Xircal:''' this does not seem to be the case. When I go to Options > Content > Advanced > Other Languages I can see that Proportional is set to Sans Serif, and that Sans-Serif is set to Arial. The following line is also in my about:config:
    font.default.x-unicode user set string sans-serif
    '''cor-el:''' yes this is the address. While on this page, if I go to View > Character Encoding, the active selection is Unicode (UTF-8).
    '''Edit:''' if I manually change this site's encoding to Western (ISO-8859-1) the font changes to that I specified for Western encoding in Advanced font options.

  • Convert ANSI to UTF-8

    hi guys,
        recently i import xml file to other system, but the source xml's format is ANSI and maybe contain english,simplified Chinese,Chinese Traditional and so on. so i need to develop a custome receive pipeline for this. and i did it as below
    reference,it still can not convert it correctly.
    http://blogs.msdn.com/b/apacbiztalk/archive/2013/02/01/how-to-convert-messages-from-ansi-to-utf8-encoding-in-a-pipeline-component.aspx
    who can tell me the reason?

    Hi,
    I doubt its just encoding conversion as you are dealing with NON-ANSI characters (Chinese,Chinese Traditional and so on). I would suggest first you can format the xml than you can go ahead with encoding conversion .
    Thanks
    Abhishek

  • XDK support for UTF-16 Unicode

    Hi,
    Does the Oracle Java XDK, specifically the XSQL servlet and api,
    support UTF16-Unicode.
    Presumably, .xsql files have to be stored, read and queries
    executed in a Unicode compliant format for this to work. Is this
    possible currently???
    Thanks,
    - Manish

    If you are using XDK 9.0.1 or later, and you are using JDK 1.3,
    this combination supports UTF-16. XSQL inherits the support
    for "free" in this case.

  • VBScript doesn't work for UTF-8 text files

    I'm new to scripting. When I tried to run the sample VBScript on page 8 of the PDF doc, "Adobe Introduction to Scripting," I got an error message, "Invalid Character, Line 1, Column 1."
    I'm running CS3 Design Premium on Windows XP Pro.
    The problem turned out to involve the character encoding of the .jsx text file. I use UTF-8 UNICODE encoding for all of my text files, and the VBScript interpreter has not been updated to handle UTF-8. When I saved the file with the Windows 1252 Western European encoding, the script worked as advertised.
    I use UTF-8 now, and I'm planing to go to UTF-16. I want my Web sites and text files to display the way I wrote them anywhere in the world, and I don't want character-set restrictions on text that I insert into CS3 docs using a script.
    I don't know if the problem lies with Adobe or with Windows, but it represents a fault that needs to be fixed.

    Maybe the problem is that you're trying to write a VBScript in a .jsx file? You need to rename it to .vbs .

  • Bitmap font creator (for UTF-8 enconding)?

    Hi
    We have a multilangual project, where all textes are stored
    in XML-files
    with UTF-8 encoding
    Text from XML was read by Director and shown through
    Flash-objects
    Now we want to display these text, using some bitmap fonts
    (for examples all
    letters of font are represented as sequence of small
    letter-pictures, all
    containing in one bitmap castmember + XML description file,
    contatining
    position of each letter in that bitmap castmember)
    We need a bitmap font creator, that can create such images,
    representing
    fonts.
    Important is, that this creator should store description file
    in UTF-8
    encoding, so that we can crate bitmap presentation for
    german, french,
    spanish etc. special characters. Does any one know about some
    tool like
    this?
    Any other ideas will be very appreciated.
    Thanx in advance,
    LM

    '''Xircal:''' this does not seem to be the case. When I go to Options > Content > Advanced > Other Languages I can see that Proportional is set to Sans Serif, and that Sans-Serif is set to Arial. The following line is also in my about:config:
    font.default.x-unicode user set string sans-serif
    '''cor-el:''' yes this is the address. While on this page, if I go to View > Character Encoding, the active selection is Unicode (UTF-8).
    '''Edit:''' if I manually change this site's encoding to Western (ISO-8859-1) the font changes to that I specified for Western encoding in Advanced font options.

  • PDETextItem for utf-8 characters

    hi i want retrieve text with "PDETextItemCopyText" standard characters copy well but utf-8 character like arabic characters
    (ت ی چ خ ز ر س , ....)
    are not
    what can i do for solving this problem ?
    CosObj kid1 = CosArrayGet(obj3,pageNumber);
    CosObj cosst = CosDictGet(kid1,ASAtomFromString("Contents"));
      CosObj resou = CosDictGet(kid1,ASAtomFromString("Resources"));
    PDEContent pddd=PDEContentCreateFromCosObj(&cosst,&resou);
    PDEElement ele=PDEContentGetElem(pddd,i);
    PDEText tText;
    tText=reinterpret_cast<PDEText>(ele);
    PDETextItem pdeti= PDETextGetItem(tText,f);
    int lll=PDETextItemGetTextLen(pdeti);
    buf= (ASUns8*)ASmalloc(lll+1);//(ASUns8*)malloc(lll+1);]
    memset(buf,0,lll+1);
    PDETextItemCopyText(pdeti,buf,lll);
    memcpy((char*)tempref,(char*)buf,lll);
    original text like this
    what i can show after fetch text and reproduce pdf file like this
    thanks for your help

    is there any way to use  PDETextGetItem and save correct character?
    or any other function to retrieve text ?
    I cant find that api please share a web page link

Maybe you are looking for

  • How do I change the main iCloud account on my iPhone?

    How do I change the main iCloud account on my iPhone?

  • Colour profiling with Canon ip6600d

    Hello can anyone please help me? I am using the above printer on Canon Photo Paper Plus Glossy with Canon original inks. If I let PS (CS6) manage the profile and set the printer driver colour correction to NONE the driver set itself back to Driver Ma

  • House got robbed. MacBook missing. Help!!!

    Hey my house got robbed and i lost bunch of stuff including my macbook pro. and i found out that i had a warranty on my macbook until mid-march. so can i get a new one with that warranty. or if i can track my old macbook how would i do it.

  • Office 2010 Quick Contacts option not available in To-Do Bar

    Hi, For one user till yesterday he can able to view the presence status in Outlook (In Quick Contacts option) But suddenly the Quick contacts option is disappeared. I try to enable to the option through VIEW > TO-DO BAR > QUICK CONTACTS (Enable) But

  • Oracle Db 10g Release 10.2.0.4.0 - 64bit Production - DB Hang

    Server - IBM AIX Database is hanging some times. In alert logifles its showing ========================================================================== $ cat alert_WPCPRODB.log Tue Apr 13 09:03:41 2010 Thread 1 advanced to log sequence 55358 (LGWR