UTF-16

I have a UTF-16 text file, multi-language.
When I open the file in a text editor it's recognized as such and I see the different languages.
When I open it in ODI I lose the languages...
Where do I set ODI up for Language Support? I am trying to set up a DataStore for the file..
Thanks,
MemphisOne

check this post also
Does ODI handle different Code Page?

Similar Messages

  • Como deixar a codificação padrão "iso-8859-1" ao invés de "utf-8" no navegador?

    Quando faço o acesso ao banco do meu cartão de crédito, a primeira pagina deles é codificada com "UTF-8" e também existe o comando "charset=utf-8" no código HTML, após digitar o número do cartão, ele direciona para outra página, porém codificada com "iso-8859-1", mas sem nenhuma codificação no código HTML.
    Identifiquei que o navegador usa por padrão o "utf-8" quando não existe codificação no código HTML, então gostaria de modificar esse padrão para "iso-8859-1".
    O único lugar que encontrei para essa codificação foi ao pressionar o botão de avançado em "Fontes e cores", porém não funcionou.
    A versão do meu navegado é 23.0.1, entretanto desde a versão 18 que encontro esse problema.

    It is possible that the server sends the file(s) by default with UTF-8 and in such a case this encoding send by the server prevails over all other settings.
    You can see the encoding here: Tools > Page Info > General
    *Press the F10 key or tap the Alt key to bring up the hidden "Menu Bar" temporarily.

  • 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.

  • ISO vs UTF-8

    La migración de la BBDD de una aplicación desde un encoding ISO-8859-1 a otra con enconding UTF-8 puede presentar problemas durante el proceso de import debido al tratamiento que el encoding UTF-8 realiza de los campos CHAR, VARCHAR y VARCHAR2.
    El origen de los problemas viene provocado por que en ISO-8859-1 cualquier carácter (normales, acentuados, ñ, etc…) ocupa 1 byte mientras que en UTF-8, los caracteres “especiales” ocupan más de 1 byte.
    Para evitar este problma es necesario especificar los campos CHAR, VARCHAR y VARCHAR2 con el atributo CHAR ya que de esta manera se consigue desligar a los datos del encoding de la BBDD en la que resida. En caso contrario ORACLE asumirá por defecto que el tamaño implica “bytes” y como consecuencia un encoding UTF-8 producirá problemas al manejar caracteres especiales.
    Por otro lado, la realización de este cambio deja en manos de ORACLE la decisión sobre el tamaño físico de datos a emplear de forma que, en el caso que los VARCHAR que no contengan caracteres extraños su tamaño coincidirá exactamente al tamaño en bytes en TS pero, un campo que contenga uno (o más) caracteres especial, verá incrementado el espacio empleado en disco de forma proporcional. En este caso, ORACLE recomienda considerar un incremento de un 15% sobre el espacio de disco ocupado en la versión ISO.
    http://www.fancypeople.org

    Google Translate does it thusly
    >
    The migration of a DB application from an encoding ISO-8859-1 to another with enconding UTF-8 can present problems during the import process due to treatment than UTF-8 encoding performed in the fields CHAR, VARCHAR and VARCHAR2.
    The origin of the problem that is caused by ISO-8859-1 any character (normal, accentuated, ñ, etc ...) while occupies 1 byte in UTF-8 characters "special" occupy more than 1 byte.
    To work around this problme is necessary to specify the fields CHAR, VARCHAR and VARCHAR2 to CHAR attribute as is done this way to separate the data encoding of the DB where you live. Otherwise default ORACLE assume that the mean size "bytes" and result in UTF-8 encoding will cause problems when handling special characters.
    Furthermore, the implementation of this change ORACLE leaves the decision on the physical size of data to be used so that, for the VARCHAR containing no strange characters will match exactly the size in bytes in size but TS A field containing one (or more) special characters, will increase the disk space used proportionately. In this case, Oracle recommends considering an increase of 15% of the disk space occupied in the ISO version.
    >
    I do not see a question or issue in there :-)
    Srini

  • Error 1030723 Unable to get UTF-8 locale when using Essbase API 11.1.1

    Now I got a question about how to connect to an Essbase Server by using essbase client API (11.1.1). I encountered an error “Unable to get UTF-8 locale” when I tried to EssInit((pInitStruct, phInstance) API.
    However, I had no problem to call the API if I uses essbase previous client APIs (7.1 or 9.3).
    I passed the “ESS_API_UTF8” to usApiType field in the ESS_INIT_T struct. When I openned the “essapi.h” header file, I found these are some new fields (highlighted in red color below) added in the essbase client API (11.1.1)
    ESS_TSA_API_typedef_struct(ess_init_t)
    ESS_TSA_ELEMENT(ESS_ULONG_T, Version); /* This should be set to ESS_API_VERSION */
    ESS_TSA_ELEMENT(ESS_PVOID_T, UserContext); /* void pointer to user's message context */
    ESS_TSA_ELEMENT(ESS_USHORT_T, MaxHandles); /* max number of context handles required */
    ESS_TSA_ELEMENT(ESS_SIZE_T, MaxBuffer); /* max size of buffer that can be allocated */
    ESS_TSA_ELEMENT(ESS_STR_T, LocalPath); /* local path to use for file operations */
    ESS_TSA_ELEMENT(ESS_STR_T, MessageFile); /* full path name of message database file */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, AllocFunc); /* user-defined memory allocation function */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, ReallocFunc); /* user-defined memory reallocation function */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, FreeFunc); /* user-defined memory free function */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, MessageFunc); /* user-defined message callback function */
    ESS_TSA_ELEMENT(ESS_STR_T, HelpFile); /* user-defined help file path */
    ESS_TSA_ELEMENT(ESS_PVOID_T, Ess_System); /* reserved for internal use */
    ESS_TSA_ELEMENT(ESS_USHORT_T, usApiType);
    ESS_TSA_ELEMENT(ESS_PCATCHFUNC_T, CatchFunc); /* user-defined kill-own-request signal callback function */
    ESS_TSA_ELEMENT(ESS_PCATCH_INIT_FUNC_T, CatchInitFunc); /* user-defined kill-own-request signal initialization callback function */
    ESS_TSA_ELEMENT(ESS_PCATCH_TERM_FUNC_T, CatchTermFunc); /* user-defined kill-own-request signal termination callback function */
    ESS_TSA_ELEMENT(ESS_PCOOKIE_CREATE_FUNC_T, CookieCreateFunc); /* user-defined cookie creation function */
    ESS_TSA_ELEMENT(ESS_PCOOKIE_DELETE_FUNC_T, CookieDeleteFunc); /* user-defined cookie creation function */
    } ESS_TSA_END(ESS_INIT_T);
    I could not find any document to introduce the API (11.1.1. And what does the error “Unable to get UTF-8 locale” mean? How can work around it. Any environment parameters or paths need to be set?
    Please advise.

    Hi,
    The API documentation for V11 is available from :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_apiref/frameset.htm?launch.htm
    Hopefully it might point you in the right direction.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ABAP to XML file - Formatting problem and UTF-8 requirement

    Hi Everyone,
    Could you please guide us on the ABAP coding required to get the proper XML file format. We have prepared the code for downloading SAP transaction data into an XML file format. However, we are stuck with an improper format as per Example 1.
    The file format we get is this:
    Example 1:
    <?xml version="1.0"?><FDXLMDOrd><FXNHdrLp><CrtDtTm>20070613094517</CrtDtTm><MsgID>319304155</MsgID><MsgTyp>850</MsgTyp><MsgSubTyp>SALES_A</MsgSubTyp><Pr
    <RcvTP>FSCS</RcvTP><SndSrc>FXN</SndSrc><RcvSrc>EIB</RcvSrc><UsrID>VAR</UsrID></FXNHdrLp><OrdHdrLp><OrdNbr>319304155</OrdNbr><OrdActnCD>9</OrdActnCD><Ord
    teCarrReq>FDE</RteCarrReq><RteTptSvcReq>FEIP</RteTptSvcReq></DprtRteLp><SpecInstrLp><SpecInstrTyp>SHIP</SpecInstrTyp><SpecInstr>Example Packing Instruct
    les Order</RefDesc></RefLp><RefLp><RefIDQual>CPO</RefIDQual><RefID>test 1 line 1 pc - s</RefID><RefDesc>Customers Customer Purchase Order</RefDesc></Ref
    Typ><EntIDQual>91</EntIDQual><EntID>H00092</EntID><EntNm>VLAD BOBES</EntNm><Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA
    ></AdrLnLp><ConLp><ConTypCD>IC</ConTypCD><ConNm>VLAD BOBES</ConNm><CommLp><CommNbrQual>TE</CommNbrQual><CommNbr>514-731-8361</CommNbr></CommLp></ConLp><
    <Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA</CtryISOCD><AddlNmLp><AddlNm1>VLAD BOBES</AddlNm1></AddlNmLp><AdrLnLp><Str
    However, the format need to look like this as in Example 2 below.
    We also need help in how to get  " encoding="UTF-8"?> " as part of the file format.
    Example 2:
    <?xml version="1.0" encoding="UTF-8"?>                
    <FDXLMDProdRcpt>                                      
        <FXNHdrLp>                                        
            <CrtDtTm>20070612151817</CrtDtTm>             
            <SessID>26796</SessID>                        
            <MsgTyp>861</MsgTyp>                          
            <MsgSubTyp>WRE_A</MsgSubTyp>                  
            <PrcsingPrty>5</PrcsingPrty>                  
            <SndTPQualCD>ZZ</SndTPQualCD>                 
            <SndTP>FSCS</SndTP>                           
            <RcvTPQualCD>ZZ</RcvTPQualCD>                 
            <RcvTP>EIB</RcvTP>                            
            <SndSrc>YANTRA</SndSrc>                       
            <RcvSrc>EIB</RcvSrc>                          
            <UsrID>VAR</UsrID>                            
        </FXNHdrLp>                                       
        <ProdRcptHdrLp>                                   
            <ShpID>VAR20070612NCHIC1</ShpID>              
            <ShpTyp> </ShpTyp>                            
            <ShpActnCD>00</ShpActnCD>                     
            <InTransMrgTyp> </InTransMrgTyp>              
            <ShpVolUOM>CI</ShpVolUOM>                     
            <ShpWgtUOM>LB</ShpWgtUOM>                     
            <ShpTotVol>310022.00</ShpTotVol>              
            <ShpTotWgt>861.00</ShpTotWgt>                 
            <DtTmLp>                                      
                <DtTyp>050</DtTyp>                        
                <DtTmQual>501</DtTmQual>                  
                <DtTm>2007-06-12T15:07:41-04:00</DtTm>    
            </DtTmLp>                                     
            <AdrLp>                                       
                <EntTyp>RC</EntTyp>                       
                <EntIDQual>93</EntIDQual>                 
                <EntID>NCHIC</EntID>                      
                <EntNm>NCHIC</EntNm>                      
                <AutoCrtTrdPar>0</AutoCrtTrdPar>          
                <AutoCrtTrdParRole>0</AutoCrtTrdParRole>  
                <AutoUpdtTrdPar>0</AutoUpdtTrdPar>        
            </AdrLp>                                      
            <ProdRcptTptLp>                               
                <TptIDQual>BOL</TptIDQual>                
                <TptSCAC> </TptSCAC>                      
                <TptID> </TptID>   
    Thanks and Best Regards
    Sitaraman

    You could try to use the following coding:
    *& Report  ZUS_SDN_UC_XML_TO_UTF8_TRANSF
    REPORT  zus_sdn_uc_xml_to_utf8_transf.
    define local data
    CONSTANTS:
      gc_encoding           TYPE string VALUE 'UTF-8'.
    DATA:
      gd_result             type string,
      go_ixml               TYPE REF TO if_ixml,
      go_stream_factory     TYPE REF TO if_ixml_stream_factory,
      go_encoding           TYPE REF TO if_ixml_encoding,
      go_resstream          TYPE REF TO if_ixml_ostream.
    DATA:
      gt_knb1    TYPE STANDARD TABLE OF knb1,
    gd_xml     TYPE string,
      gt_xml     TYPE TABLE OF string.
    START-OF-SELECTION.
      SELECT * FROM knb1 INTO TABLE gt_knb1 UP TO 10 ROWS
          WHERE bukrs = '1000'.
      go_ixml = cl_ixml=>create( ).
      go_stream_factory = go_ixml->create_stream_factory( ).
      go_encoding = go_ixml->create_encoding( character_set = gc_encoding
                                            byte_order = 0 ).
      go_resstream =
                  go_stream_factory->create_ostream_cstring( gd_result ).
      CALL METHOD go_resstream->set_encoding
        EXPORTING
          encoding = go_encoding.
    XML Transformieren
      CALL TRANSFORMATION id_indent
        SOURCE     itab = gt_knb1
        RESULT XML go_resstream.
      APPEND gd_result TO gt_xml.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
         BIN_FILESIZE              =
          filename                  = 'C:\temp\xml_to_utf8.txt'
         FILETYPE                  = 'ASC'
         APPEND                    = SPACE
         WRITE_FIELD_SEPARATOR     = SPACE
         HEADER                    = '00'
         TRUNC_TRAILING_BLANKS     = SPACE
         WRITE_LF                  = 'X'
         COL_SELECT                = SPACE
         COL_SELECT_MASK           = SPACE
         DAT_MODE                  = SPACE
         CONFIRM_OVERWRITE         = SPACE
         NO_AUTH_CHECK             = SPACE
         CODEPAGE                  = SPACE
         IGNORE_CERR               = ABAP_TRUE
         REPLACEMENT               = '#'
         WRITE_BOM                 = SPACE
         TRUNC_TRAILING_BLANKS_EOL = 'X'
       IMPORTING
         FILELENGTH                =
        CHANGING
          data_tab                  = gt_xml
        EXCEPTIONS
          file_write_error          = 1
          no_batch                  = 2
          gui_refuse_filetransfer   = 3
          invalid_type              = 4
          no_authority              = 5
          unknown_error             = 6
          header_not_allowed        = 7
          separator_not_allowed     = 8
          filesize_not_allowed      = 9
          header_too_long           = 10
          dp_error_create           = 11
          dp_error_send             = 12
          dp_error_write            = 13
          unknown_dp_error          = 14
          access_denied             = 15
          dp_out_of_memory          = 16
          disk_full                 = 17
          dp_timeout                = 18
          file_not_found            = 19
          dataprovider_exception    = 20
          control_flush_error       = 21
          not_supported_by_gui      = 22
          error_no_gui              = 23
          OTHERS                    = 24.
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    END-OF-SELECTION.
    However, I like to mention that the file created from out ECC 5.0 (6.40, non-Unicode) contains a special character between the XML header and the data part (when displayed using NotePad Editor):
    ...xml version="1.0" encoding="utf-8"?>[special character]<asx:abap xmlns:asx="http://www.sap.com/a...
    Using a HexEditor the special character (0x0A) is displayed as a dot.
    Also Check with FM - TREX_TEXT_TO_UTF8
    Reward Points if it is helpful
    Thanks
    Seshu

  • UTF-8 encoding in J2ME

    Hello,
    I'm currently developing J2ME application for downloading bus schedules.
    The data that I download is in polish language (eg. bus directions, stop names etc). These are xml files generated by a php script encoded in UTF-8.
    The problem is that I don't know how to display that properly, so that all the polish characters are what they're supposed to be.
    Some of my code for downloading content:
    String getXML(String url)
            HttpConnection cn = null;
            InputStream str = null;
            //DataInputStream strd = null;
            StringBuffer sb = null;
            try
                int code;
                cn = (HttpConnection) Connector.open(url);
                code = cn.getResponseCode();
                if (code == HttpConnection.HTTP_OK)
                    str = cn.openInputStream();
                    // strd = new DataInputStream(str);
                    sb = new StringBuffer();
                    InputStreamReader r = new InputStreamReader(str, "UTF-8");
                    int total = 0;
                    int read = 0;
                    while ((read = r.read()) >= 0)
                        total++;
                        sb.append((char) read);
                    return sb.toString();
                else
                    throw new Exception("Nie uda&#322;o si&#281; po&#322;&#261;czy&#263; z serwerem");
            catch (Exception e)
                return null;
            finally
                try
                    if (str != null)
                        str.close();
                    if (cn != null)
                        cn.close();
                catch (Exception e)
        }And parsing it:
    InputStreamReader reader = null;
                    String xml = getScheduleXML(getSel_Line(), null, null);
                    ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes());
                    reader = new InputStreamReader(stream, "UTF-8");
                    parser.setInput(reader);
                    while (parser.next() != KXmlParser.END_DOCUMENT)
                        if ((parser.getEventType() == KXmlParser.START_TAG) && (parser.getName().equalsIgnoreCase("direction")))
                                String d = (String) parser.getAttributeValue(0);
                                v.addElement(d);
                                String d2 = (String) parser.getAttributeValue(1);
                                v2.addElement(d2);
                    }What do I do wrong? What is missing?

    Problem solved. I had to add "UTF-8" parameter to getBytes method.

  • How do I supress the encoding of UTF-8 characters in a f:param element

    Hello,
    I have a keyboard displayed on my page, which won't work properly because of the used german characters.
    I have an icon for every button embedded in a link, which adds the selected character to the searchstring.
    For example adding an a works like this:
    from keyboard.xhtml:
    <s:link><f:param name="#{keyname}" value="#{keyword}a"/><h:graphicImage value="key_a.png"/></s:link>keyname and keyword are parameters submitted by the including form:
    from myform.xhtml:
    <ui:param name="keyword" value="#{end}"/>
    <ui:param name="keyname" value="end"/>This works great as long as the character is a standard one, but on as soon as I have a german umlaut in the string, the umlaut gets encoded/escaped with every single character that i add to the searchstring:
    The string makes it's way correctly to the keyboard-template, I can use a h:outputText to show it on the page and it doesn't get escaped.
    So, how can I prevent the escaping of my characters in the f:params elements?
    I really need to get this to work. so any hint or even solution would be fabulous.
    Thanks in advance, Peter
    PS: maybe my web server is doing something nasty, so it would be nice, if someone can check this code:
    <s:link><f:param name="test" value="�"/>INIT</s:link><br/>
    <s:link><f:param name="test" value="#{test}"/>REPEAT</s:link><br/>
    INFO: <h:outputText value="#{test}" /><br/>here is the same one with h:outputLink
    <h:outputLink><f:param name="test" value="�"/>INIT</h:outputLink><br/>
    <h:outputLink><f:param name="test" value="#{test}"/>REPEAT</h:outputLink><br/>
    INFO: <h:outputText value="#{test}" /><br/>EDIT: I found the solution, it was my beloved jboss application server, after adding a parameter to the server.xml, everything worked as expected:
    use page settings:
    <Connector port="8080" .....
    useBodyEncodingForURI="true" ..../>hardcoded:
    <Connector port="8080" .....
    URIEncoding="UTF-8" ..../> Edited by: pete007 on Mar 12, 2008 1:47 PM

    "Encoding" refers to the charset used to convert the Unicode data into bytes. But since you're writing to a String, you aren't converting the data to bytes and therefore UTF-16 is the appropriate encoding. It doesn't make sense to ask for your data to be encoded in UTF-8 when you aren't producing bytes.
    You could read this tutorial about XML and Unicode and encodings for more information:
    http://skew.org/xml/tutorial/

  • How to retrieve input data from a HTML form in the UTF-8 cha

    I encountered the following problem with a JWeb Application:
    I tried to write a JWeb-Application for OAS 4.0, that retrieves
    input data from a HTML form and writes it into an Oracle
    database.
    All processing should be done in the UTF-8 character set.
    The problem is, that the form data retrieved by getURLParameter
    are always encoded in a non-unicode character set and I found no
    way to change this.
    Can anybody tell me what I should do to get the form data in the
    UTF-8 character set?
    null

    Hi
    Try set in the JWEB application's Java environment such
    SYSTEM_PROPERTY: file.encoding=UTF8.
    Andrew
    Thomas Gertkemper (guest) wrote:
    : I encountered the following problem with a JWeb Application:
    : I tried to write a JWeb-Application for OAS 4.0, that
    retrieves
    : input data from a HTML form and writes it into an Oracle
    : database.
    : All processing should be done in the UTF-8 character set.
    : The problem is, that the form data retrieved by getURLParameter
    : are always encoded in a non-unicode character set and I found
    no
    : way to change this.
    : Can anybody tell me what I should do to get the form data in
    the
    : UTF-8 character set?
    null

  • Problem with UTF-8 japanese on Win XP

    Hi,
    I have a Client/server application with a server coded in C++ and runing on HP workstation and the GUI in java runing in a web context via java webstart mechanism on PC machine with win XP sp2 OS.
    when logging into the HP workstation in japanese SHIFT_JIS and downloading the application japanese Charcters are displayed correctly on my PC.
    However when logging into the HP workstation in japanese with UTF-8 encodage and kaunching the application characters aren't displayed correctly only rectangle charcaters are displayed, when launching the GUI on HP workstation it displayed correctly.
    Can any one help me to resolve this problem.
    Regards,

    Both SHIFT_JIS and UTF-8 are character encodings. SHIFT_JIS encodes a superset of JISX-0208 to double-byte codepoints and JISX-0201 to single byte codepoints. UTF-8 encodes all of Unicode.
    The problem here is that you are relying on "default" encoding for a client-server application. This only works when the default encoding is the same on both ends.
    Go through your code, looking for everywhere where you convert to and from Strings, including reading and writing to IO Streams, and replace the methods you are using with equivalent methods that let you specify an encoding.

  • 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

  • Crystal Report 9 - Can't Display UTF-8 Data

    Dear Sir,
    I am using PHP with Crystal Report 9.2 and has problem displaying UTF-8 data from MSSQL field. It shows weird characters instead. I am very sure the data stored in database is in UTF-8 because when I ouput it into the web browser with encoding as UTF-8, it shows correctly. Currently is using ADODB recordset to pass data into CR. I tried using ODBC to connect directly to database and preview the data - same issue.
    Now I wonder whether are there any settings need to be done in CR in order to display unicode correctly? From what I read, CR 9 and above should be able to support unicode.
    Thanks
    AL

    To be honest, I have no idea if TTX files supported UTF-8... I kinda doubt it. I'd check, but the only person I knwo of that may have a clue is not in until September 28...
    Re. ODBC, see if adding the following option to your DSN entry in the odbc.ini file will help:
    stmt = SET CHARACTER SET utf8
    Also, if I remember right, MS SQL does not install UTF-8 support by default (at least at one time or another it did not...(?).
    Oh - one more thing. I've attached a non CR app that I'd like you to use to see what the data it returns looks like. Please give that a try.
    - Ludek
    Edited by: Ludek Uher on Sep 7, 2011 10:43 AM

  • Need help to read and write using UTF-16LE

    Hello,
    I am in need of yr help.
    In my application i am using UTF-16LE to export and import the data when i am doing immediate.
    And sometimes i need to do the import in an scheduled formate..i.e the export and imort will happend in the specified time.
    But in my application when i am doing scheduled import, they used the URL class to build the URL for that file and copy the data to one temp file to do the event later.
    The importing file is in UTF-16LE formate and i need to write the code for that encoding formate.
    The problem is when i am doing scheduled import i need to copy the data of the file into one temp place and they doing the import.
    When copying the data from one file to the temp i cant use the UTF-16LE encoding into the URL .And if i get the path from the URl and creating the reader and writer its giving the FileNotFound exception.
    Here is the excisting code,
    protected void copyFile(String rootURL, String fileName) {
    URL url = null;
    try {
    url = new URL(rootURL);
    } catch(java.net.MalformedURLException ex) {
    if(url != null) {
    BufferedWriter out = null;
    BufferedReader in = null;
    try {
    out = new BufferedWriter(new FileWriter(fileName));
    in = new BufferedReader(new InputStreamReader(url.openStream()));
    String line;
    do {
    line = in.readLine();
    if(line != null) {
    out.write(line, 0, line.length());
    out.newLine();
    } while(line != null);
    in.close();
    out.close();
    } catch(Exception ex) {
    Here String rootURL is the real file name from where i have to get the data and its UTF-16LE formate.And String fileName is the tem filename and it logical one.
    I think i tried to describe the problem.
    Plz anyone help me.
    Thanks in advance.

    Hello,
    thanks for yr reply...
    I did the as per yr words using StreamWriter but the problem is i need a temp file name to create writer to write into that.
    but its an logical one and its not in real so if i create Streamwriten in that its through FileNotFound exception.
    The only problem is the existing code build using URL and i can change all the lines and its very difficult because its vast amount of data.
    Is anyother way to solve this issue?
    Once again thanks..

  • XML PUBLISHER ERROR :Environment will now switch to UTF-8 code-set.

    Hello ,
    I have developed a new XML Publisher report and when I submit request that is coming as Completed Warning Status and the Log file is given Below.
    When I consulted My DBA , he told me everything is fine and it is problem either in template file or rdf
    I dont know what to do
    Can anyone tell me what is the wrong in the following log file
    AAB Custom Application: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXCRCNTRT module: AAB RAC Contracted vehicles
    Current system time is 06-MAY-2009 09:43:37
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_CUSTOMER='2154'
    Environment will now switch to UTF-8 code-set.
    Parts of this log file may not display correctly
    as a result. This is an expected behavior.
    XML_REPORTS_XENVIRONMENT is :
    /f03/applstgd/stageora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /f03/applstgd/stageora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Report Builder: Release 6.0.8.27.0 - Production on Wed May 6 09:43:42 2009
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 8923141 on node STAGEDB at 06-MAY-2009 09:43:52.
    Post-processing of request 8923141 failed at 06-MAY-2009 09:44:18 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 06-MAY-2009 09:44:19
    Thanks and Regards
    Sunil Dutt .S

    The problem was solved as there is a problem in the formatting of template

  • Is there a way to force the charset to utf-8 with the IIS plug-in?

    We're using AJAX. The initial request for the HTML has charset=utf-8 set on the HTTP header as seen in this Live HTTP Headers capture:
    http://plper.mysite.com/mysupport/index.jsf
    GET /mysupport/index.jsf HTTP/1.1
    Host: plper.mysite.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Cookie: mysiteSiteUrl=http://www.mysite.com; Amysession=aHR0cDovL3BscGVyLmVtYy5jb206ODAv; JSESSIONID=FN3WLTNJFJCfYhHHVrwKvLHF2gGdnnTb11DrCyZqR9YbGhcG28lK!-1728721171; mysession=AAAAAgABAFBy5LRMDmjSRCN%2FByvfquVwFeKCpmES4x9lReRava35fxKfwcbJimb3YyPhEd0vBq7ZxgJVecL475TFZwQuSphLOwRWAQw2t7PEW%2BrxsfxgnQ%3D%3D
    HTTP/1.x 200 OK
    Date: Tue, 10 Jun 2008 18:53:01 GMT
    Server: Microsoft-IIS/6.0
    Cache-Control: no-store,no-cache,must-revalidate, no-cache="set-cookie"
    Pragma: No-cache
    Transfer-Encoding: chunked
    Content-Type: text/html;charset=UTF-8
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Set-Cookie: JSESSIONID=09VTLTNWT07LlqnK22jTWwM8y5L9v1rmPf9CTW5TnGGKBvWvjJpP!-1728721171; path=/
    Content-Language: en-US
    X-Powered-By: Servlet/2.5 JSP/2.1
    Subsequent requests do not:
    http://plper.mysite.com/mysupport/index.jsf
    POST /mysupport/index.jsf HTTP/1.1
    Host: plper.mysite.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
    Accept: application/x-backbase+xml,application/xhtml+xml,application/xml,text/xml,application/x-www-form-urlencoded,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Content-Type: application/x-www-form-urlencoded
    Referer: http://plper.mysite.com/mysupport/index.jsf
    Content-Length: 122
    Cookie: mysiteSiteUrl=http://www.mysite.com; Amysession=aHR0cDovL3BscGVyLmVtYy5jb206ODAv; JSESSIONID=09VTLTNWT07LlqnK22jTWwM8y5L9v1rmPf9CTW5TnGGKBvWvjJpP!-1728721171; mysession=AAAAAgABAFBRtE5lAyr85YM0aIap%2Bekf1Qu8FoA6BNh4JVl1JgvDNDQgYrQm5m9W%2FQa4HLK767CtXV5c%2FhtXchbug9%2BE1zoCmqSBqqYmqXE9VG1lXi%2F%2Brg%3D%3D
    Pragma: no-cache
    Cache-Control: no-cache
    BackbaseClientDelta=%5Bevt%3DsrQuery%3AsiteList%7Cevent%7Csubmit%5D%5Bvalue%3DsrQuery%3AsiteList%7Cmultivalue%7C3971957%5D
    HTTP/1.x 200 OK
    Date: Tue, 10 Jun 2008 18:58:17 GMT
    Server: Microsoft-IIS/6.0
    Content-Length: 1720
    Content-Type: text/xml
    X-Powered-By: Servlet/2.5 JSP/2.1
    Is there a way to force requests going through the proxy plug-in to get a charset=utf-8 set in the HTTP header for all requests?
    Thanks!
    Edited by f2racer at 06/10/2008 12:01 PM

    If for some reason you have failed to maintain a backup copy of your computer ( not good), then transfer purchases form your ipod.
    Without syncing, click File>Transfer Purchases

  • How to create txt file in utf-8?

    Hi,
    if i create a txt file using vb in fdm, it is created with the ansi encoding. Is there any option how to create this file in utf-8?
    Thx

    Forms6i uses Oracle 8.0.6 client libraries. MetaLink Note 207303.1 lists supported client/server configurations, and the last database version supported with those libraries is Oracle 9.2. The only exception is made for e-Business Suite (Oracle Applications). Therefore, you configuration is not supported.
    Anyway, Oracle 8.0.6 does not support AL32UTF8 well. You should select UTF8 as the database character set (not national character set!). You need to select a check box on DBCA interface (possibly unavailable in fast/default installation path) which allows you to see non-recommended character sets.
    -- Sergiusz

Maybe you are looking for