Invalid byte 1 of 1 byte utf 8 sequence(BI Mobile 4.0)

hi..
i want to try open a report from my ipad..
in the report the only prompt is the day.
but when i try the refresh report i see "invalid byte 1 of 1 byte utf 8 sequence"
so i cant refresh report..
what can i do..
thanks in advance.

The problem is in the file format. I do not know exact solution for this since I'm not familiar with BI Mobile 4.0. The report you try to open is really not in UTF-8 format. I would quess it is in ISO-8859-1 or similar format so you need to change this into the UTF-8 format somehow.
Edited by: Mika Karvonen on Sep 15, 2011 2:27 PM

Similar Messages

  • 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

  • Converting bytes to unsigned bytes

          int u=0;
          int i=32;
    byte []  data1 = new byte[1024];
    int[] unsignedValue=new int[1024];
    while(u<100){
                        unsignedValue[u] =data1[i] & 0xff;
                          u++;
                          i++;
                       } from input stream iam storing bytes in data1.now i want to convert specific bytes to unsigned bytes.
    here i tryed in the above way but i want to convert
    2 to 8
    12 to 18
    22 to 28
    bytes to unsigned and i want to store how can i do this?

    nanda_java wrote:
    in my fist post only i multiplyes with 0xff .and i gave code ...my question is how to multiply only specific
    2 to 8
    12 to 18
    22 to 28
    bytes with 0xff .the bytes are in data1.I have no idea what you're saying, and I have no idea what the significance of those ranges is.
    Look, you've already been told this twice: Say you get the byte 0xFE. That byte is neither signed nor unsigned. Get that into your head. It's simply a byte. The concept of signed/unsigned only comes into play when you decide to treat that as an integer value. You might want it to represent -2, or you might want it to represent 254. If you store it in a Java byte, it will represent -2. You cannot change that. If you want 0xFE to mean 254, then mask it with 0xFF and store it in an int.
    byte b = -2;
    System.out.println(b & 0xFF); // prints 254Furthermore, as already stated, in many cases it doesn't matter if it's signed or unsigned. If you do addtion, subtraction, multiplication (I think), AND, OR, XOR, you'll get the same byte result, regardless of whether you consider it signed or unsigned, and again, signed/unsigned only matters if you care about the numerical value of that signed result, rather than simply its bit pattern. 0xFE - 0x01 = 0xFD, and you can take that as -2 -1 = -3 or as 254 - 1 = 253. The bytes are the same regardless.
    What part are you not understanding? Don't just keep repeating the same thing about how it's unsigned and 2 to 8 and all that nonsense.
    So please, define your problem more clearly.
    Edited by: jverd on Jan 10, 2008 8:53 AM

  • [svn:osmf:] 11205: Fix bug FM-169: Trait support for data transfer sample doesn' t display bytes loaded and bytes total for SWF element

    Revision: 11205
    Author:   [email protected]
    Date:     2009-10-27 15:04:26 -0700 (Tue, 27 Oct 2009)
    Log Message:
    Fix bug FM-169: Trait support for data transfer sample doesn't display bytes loaded and bytes total for SWF element
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-169
    Modified Paths:
        osmf/trunk/apps/samples/framework/PluginSample/src/PluginSample.mxml
        osmf/trunk/apps/samples/framework/PluginSample/src/org/osmf/model/Model.as

    The bug is known, and a patch has been submitted: https://bugs.freedesktop.org/show_bug.cgi?id=80151. There's been no update since friday, so I wonder what the current status is, or if it's up for review at all.
    Does anyone know how we can be notified when this patch hits the kernel?

  • To find out whether a character is of Single byte or Double bytes

    hi,
    is there any built-in class to find whether a character is a single byte or double byte. is there any method to do so?? If possible can someone provide a sample code snippet to do a check for single byte and double byte characters.
    thanx in advance.....

    If you are asking what size the char primitive is, it's 16 bits.
    If you want to know the numerical value of a char, you can cast it to an int and compare it to 255 to see if it fits in 1 byte.

  • Form English Char ( Single Byte  ) TO Double Byte ( Japanese Char )

    Hello EveryOne !!!!
    I need Help !!
    I am new to Java ,.... I got assignment where i need to Check the String , if that string Contains Any Non Japanse Character ( a~z , A~Z , 0 -9 ) then this should be replaced with Double Byte ( Japanese Char )...
    I am using Java 1.2 ..
    Please guide me ...
    thanks and regards
    Maruti Chavan

    hello ..
    as you all asked Detail requirement here i an pasting C code where 'a' is passed as input character ..after process it is giving me Double Byte Japanese "A" .. i want this to be Done ..using this i am able to Convert APLHA-Numeric from singale byte to Doubel Byte ( Japanse ) ...
    Same program i want to Java ... so pleas guide me ..
    #include <stdio.h>
    int main( int argc, char *argv[] )
    char c[2];
    char d[3];
    strcpy( c, "a" ); // a is input char
    d[0] = 0xa3;
    d[1] = c[0] + 0x80;
    printf( ":%s:\n", c ); // Orginal Single byte char
    printf( ":%s:\n", d ); // Converted Double Byte ..
    please ..
    thax and regards
    Maruti Chavan

  • I want the Bytes opened as Bytes not Characters ?

    Hi,
    Here is my assignment main points:
    1. Get File:
    I use file = fd.getSelectedFile(); to get the file content, and
    String filename = file.getName(); to get the file name
    Two things must be sent to the Server; the file name and the file content.
    2. Sending the file to Server:
    //Get a reference to the socket's output streams
    DataOutputStream os = new DataOutputStream(socket.getOutputStream());
    //Opens the requested file.
    FileInputStream fis = null;
    boolean fileExists = true;
    try {
    fis = new FileInputStream(file);
    } catch (FileNotFoundException e) {
    fileExists = false;
    if (fileExists)
    //Construct a 1K buffer to hold the bytes on their way to the socket
    byte[] buffer= new byte[1024];
    int bytes = 0;
    //Copy requested file into the socket's output stream.
    while((bytes = fis.read(buffer)) != -1)
    os.write(buffer, 0, bytes);
    // Close the file
    fis.close();
    *The file has been sent to the Server as a Byte Buffers through DataOutputStream
    3. Open the file in Server side:
    // Receive the file
    InputStream is = client.getInputStream();
    BufferedReader breader = new BufferedReader( new InputStreamReader(is));
    // Read the file as String
    String line;
    StringBuffer builder = new StringBuffer();
    while ( (line = breader.readLine()) != null){
    builder.append(line);
    builder.append(" ");
    String text = builder.toString();
    *The file has been opened as a text .
    4. Print the File:
    printText( text );
    The file has been printed as a text .
    Problems I faced are:
    1. I dont know how to send the file name + file content, now I can just send the content of the file, I know that some modification must be done in 2. Sending the file to Server, but I don't know how?
    2. I dont want to recieve the file in Server side as text, instead I want to recieve it as a bytes so I can print any type of file, how to do that?
    Any Advice? or sample code ?
    Thanks in advance.

    I don't see the problem. Use DataOutputStream's writeUTF and DataInputStream's
    readUTF for the filename and write and read bytes for the filecontent. Don't
    use Readers or Writers.

  • Changing a byte in a byte array???? HELP

    Hey I have the following code
         String plainString = new String();
         byte[] byt = new byte[0];
         byte change;
         try
              int length = (int)(keyf.length());
              byt = new byte[(length++)];
              keyf.readFully(byt);
              keyf.seek(0);
         }catch(IOException e){System.err.println(e);}And I want to edit the byt array at position (length--) and add the character "," there. Also changing the byt array at its current position to eof. Anyone know what to do???

    Make a new array with a size of length+1.byt = new byte[(length++)];
    keyf.readFully(byt);
    byte[] b2 = new byte[byt.length+1];
    System.arraycopy(byt, 0, b2, 0, byt.length);
    b2[b2.length - 1] = (byte)',';

  • Faster way to migrate from Single byte to Multi byte

    Hello,
    We are in the process of migrating from a 9i Single byte db to a 10g Multi byte db. The size of our DB is roughly 125 GB. We have fixed everything in the source database (9i) in terms of seamlessly migrating from a single byte to a multi byte db. The only issue is the migration window - curently we are doing an export/import since there is a character set migration involved and it's taking about 20+ hrs to do the import in 10g. The management wants to cut this down to less than 10 hours, if that's possible. I know the duration it takes to import depends on many factors like the system/OS configuration, SAN, etc but I wanted to know what , in theory, is considered the fastest method of migrating a database from single byte to multi byte.
    Have anybody here gone through this before?
    Thanks,
    Shaji

    If the percentage of user tables containing some convertible data (I am assuming you will not have any truncation or lossy data) is low, you can export only those tables, truncate them, and rescan the database. This should report no convertible data, except some CLOBs in Data Dictionary. Such database can be migrated to AL32UTF8 using csalter.plb. After the migration, you import only the previously exported subset of tables.
    Note, for this process to work, no convertible VARCHAR2, nor CHAR, nor LONG data can be present in the Data Dictionary.
    The process should be refined by dropping and recreating indexes on the exported tables as recreating an index is faster then updating it during import. You should also disable triggers so that they do not interfere with the migration (for example, they should not update any "last_updated" timestamp columns).
    If the number and size of affected tables is low compared to the overall size of the database, the time saved may be significant.
    There may also be tables that require even more sophisticated approach. Let's say you have a multi-gigabyte table that stores pictures or documents in a BLOB column. The table also has a single text column that keeps some non-ASCII descriptions of the stored entities. Exporting/truncating/importing such table may be still very expensive. A possible optimization is to offload the description column to an auxiliary table (together with ROWIDs), update the original column to NULL, export the auxiliary table, drop it, rescan the database, migrate with csalter.plb, re-import the auxiliary table, and restore the original column. If pictures alone occupy, for example, 30% of the whole database, such approach should yield significant time saving.
    -- Sergiusz

  • Byte b = new Byte((byte)in.read()); conversion error

    Hi
    I receive with a DataInputStream with:
    Byte b = new Byte((byte)in.read());
    If i send bytes < 0x79 or > 0xa0 all works, otherwise I obtain, i.e:
    0x80 = -84 (right)
    0x81 = -3
    0x82 = 26
    Why???

    In sender side seems ok, in dump file the bytes are ok; this is sender side (dataSend is a LinkedList):
    for (Iterator iter = dataSend.iterator(); iter.hasNext();) {  
    Byte b = (Byte)iter.next();
    bytePark = b.byteValue();
    dataOut.write(bytePark);
    // then I dump bytePark on file
    receiver side:
    BufferedReader in = new BufferedReader(
         new InputStreamReader(client.getInputStream()));
    Byte e = new Byte((byte)in.read());
    if (e.byteValue() == (byte)0xf3) { // I need analize when receive 0xf3
    // here e.byteValue() has wrong behavior

  • Best way to append null bytes to a byte array?

    I have a fixed length byte array and need to add two null bytes to its end. I have an implementation that I wrote to do this, though I was wondering whether someone could improve on what I have:
    public byte[] appendNullBytes( byte[] bytes ) {
       byte[] copyBytes = new byte[bytes.length+2];
       System.arraycopy(bytes, 0, copyBytes, 0, bytes.length);
       copyBytes[copyBytes.length-1] = 0;
       copyBytes[copyBytes.length-2] = 0;
       return copyBytes
    }

    ajmasx wrote:
    jverd wrote:
    ajmasx wrote:
    jverd wrote:
    Those aren't null bytes, they're zero bytes. A bytes can never have the value null in Java.I was using the term null interchangeably with 'zero', Which is not generally applicable in Java.Well it all depends what you are doing:
    - A null is a zero value.Not in general in Java. Null is null and zero is zero.
    - char c = '\0' defines a null character.Yes, that's the only use of "null" for primitive types.
    - A null pointer is where the address is zero and not pointing to some location in memory.Nope. A null pointer is simply one that doesn't point to any value. Nothing in the spec says it's zero.
    - A null reference is more or less the same thing (there are certain difference in the details).Nope. A null pointer and null reference in Java are the same thing.
    - A null terminated string is one where null defines the end of the string.This does not exist in Java. As the above smartass pointed out, you can put the null character at the end of a String, but that character is part of the String, not a terminator.
    >
    If you are dealing with files and other types of I/O then this concept most certainly exists. Not in Java.
    Just because you are limiting yourself to high-level use of Java, does not mean they aren't present in Java.The fact that null is precisely defined in the JLS and does not include these things means they aren't present in Java.

  • Encrypting 16 bytes to 16 bytes

    I need to encrypt a byte[16] using AES and get another byte[16]. But the following code computes a byte[32]. I understand that is happens because of the usage of 16 bytes blocks and the necessity to keep track of the input length, But in this application I know that the input length is always exactly 16 bytes, so a 16 bytes output can be computed. But how?
    import javax.crypto.Cipher;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.SecretKeySpec;
    public class AaesDemo {
        public static void main(String[] args) throws Exception {
            final String alg = "AES";
            final byte[] original = new byte[16];
            final byte[] passPhrase0 = new byte[16];
            final Cipher cipher0 = Cipher.getInstance(alg);
            final SecretKey key0 = new SecretKeySpec(passPhrase0, alg);
            cipher0.init(Cipher.ENCRYPT_MODE, key0);
            final byte[] encoded = cipher0.doFinal(original);
            System.out.println(encoded.length);
    }

    It does not work:
    Exception in thread "main" java.security.InvalidKeyException: Wrong algorithm: AES or Rijndael required
         at com.sun.crypto.provider.SunJCE_f.a(DashoA14*..)
         at com.sun.crypto.provider.SunJCE_j.a(DashoA14*..)
         at com.sun.crypto.provider.SunJCE_i.a(DashoA14*..)
         at com.sun.crypto.provider.SunJCE_i.a(DashoA14*..)
         at com.sun.crypto.provider.AESCipher.engineInit(DashoA14*..)
         at javax.crypto.Cipher.a(DashoA14*..)
         at javax.crypto.Cipher.a(DashoA14*..)
         at javax.crypto.Cipher.init(DashoA14*..)
         at javax.crypto.Cipher.init(DashoA14*..)
    ...

  • (bye) Byte.MAX_VALUE + 1 == Byte.MIN_VALUE  ?

    Hi
    (bye) Byte.MAX_VALUE + 1 == Byte.MIN_VALUE
    the above expression is evaluated as true. why is it so?
    according to my understanding 128 is not equals to -128.
    please explain. i'm new to java.
    Thx

    Hi
    (bye) Byte.MAX_VALUE + 1 == Byte.MIN_VALUE
    the above expression is evaluated as true. why is it
    so?
    according to my understanding 128 is not equals to
    -128.0x7F + 1 == 0x80

  • High bytes and low bytes?

    What are high bytes and low bytes? Thanks for helping.

    This may not be enough information to answer your question. How and where are the terms High bytes and Low bytes used?
    Often, a data type is represented using multiple bytes. For example, short is 2 bytes. Sometimes the most significant byte is the high byte while the least significant byte is the low byte.

  • Working set, virtual bytes and private bytes

    Hello everyone,
    I am using Windows Server 2003 Performance Counter tool to monitor the memory consumed by my process.
    The interested terms are working set, virtual bytes and private bytes. My questions are,
    1. If I want to watch the real physical memory consumed by current process, which one should I monitor?
    2. If I want to watch the physical memory + swap file consumed by current process, which one should I monitor?
    3. Any more clear description of what these terms mean? I read the help from Performance Counter tool, but still confused
    which one(s) identifies the real used physical memory, and which one(s) identifies the real used physical memory + page swap file, and which one(s) identifies the required memory (may not be really allocated either in physical memory or in swap page file).
    If there are any related learning resource about the concepts, it is appreciated if you could recommend some. :-)
    thanks in advance,
    George

    And for further benefit:
    "Virtual bytes" is the total size of the not-free virtual address space of the process. It includes private committed, mapped, physically mapped (AWE), and even reserved address spaces. 
    "Private committed" is the portion of "virtual bytes" that is private to the process (as opposed to "mapped", which may be shared between processes; this is used by default for code). This normally includes program globals,
    the stacks (hence locals), heaps, thread-local storage, etc. 
    Each process's "private committed" memory is that process's contribution to the system-wide counter called "commit charge". There are also contributions to commit charge that aren't part of any one process, such as the paged pool. 
    The backing store for "private committed" v.m. is the page file, if you have one; if you have (foolishly in my opinion) deleted your page file, then all private committed v.m., along with things like the paged pool that would normally be backed
    by the page file, has to stay in RAM at all times... no matter how long ago it's been referenced (which is why I think running without a page file is foolish). 
    The "commit limit" is the size of RAM that the OS can use (this will exclude RAM used for things like video buffers) plus the total of the current size(s) of your pagefile(s). Windows will not allow allocations of private committed address space
    (e.g. VirtualAlloc calls with the COMMIT option) that would take the commit charge above the limit. If a program tries it, Windows will try to expand the page file (hence increasing the commit limit). If this doesn't succeed (maybe because page file expansion
    is disabled, maybe because there's no free disk space to do it) then the attempt to allocate committed address space fails (e.g. the VirtualAlloc call returns with a NULL result, indicating no memory was allocated). 
    The "Working set" is not quite "the subset of virtual pages that are resident in physical memory", unless by "resident" you mean "the valid bit is set in the page table entry", meaning that no page fault will occur
    when they're referenced. But this ignores the pages on the modified and standby page lists. Pages lost from a working set go to one of these lists; if the modified list, they are written to the page file and then moved to the standby list. From there they
    may be used for other things, such as to satisfy another process's  need for pages, or (in  Vista and later) for SuperFetch. But until that happens, they still contains the data from the process they came from and are still associated with that process
    and with that processes' virtual pages. Referring to the virtual page for which the physical page is on the standby or modified list will result in a "soft" page fault that is resolved without disk I/O. Much slower than referring to a page that's
    in the working set - but much faster than having to go to disk for it. 
    So the most precise definition of "working set" is "the subset of virtual pages that can be referenced without incurring a page fault." 

  • String representation of a byte value in byte form

    Hello,
    Suppose I have the following code:
    byte bArray[] = new byte[18];
    for(int i = 0; i < bArray.length; i++)
    { bArray[i] = (byte)i; }How would I get the value of the byte not in decimal? I want the value of say 10 as "a". How would I get the string "a"?

    byte b = 0x3f
    char x = (char) b;

Maybe you are looking for

  • Hp2009m monitor settings 1600 x 900 in xp pro -reloaded windows- can't set 1600x900

    Dell Inspiron 537MT XP Pro. Reinstalled Windows on new hard drive. Windows doesn't provide a 1600X900 selection for that display. Installing CD that came with the monitor indicates that driver is already installed. The image on the screen is not anyt

  • Process KPI extraction from BPM to BW possible? Is there content available?

    Hallo I have a question concerning BPM. Does anybody know if there is standard content and/or an extractor to retrieve BPM Process Data from the CE 7.1? I am looking for something similar as the SAP Workflow extractor and/or data model. Does someone

  • Material Determination and IDOC/EDI

    Hi Gurus, I'm wonder if someone can help me on this: 1) Material Determination is already configured. 2) Master Data already there, to convert EAN codes into Material ones. 3) If I execute VA01, everything is ok, and the EAN code will be substituted

  • Oracle iSales - iPad application

    Hello, Below is my story: Environment : iPad3 - 16GB with iOS 6 Background : I have created a html page in which I have added images, texts, jquery plugin(slider control (reveal.js) - which is mainly used to show each section as a slide). Now I have

  • Iphone 6 plus screen jumping when touched

    Seems like since I updated my phone with the latest update the screen jumps all over the place. It is really becoming annoying. Also I have noticed that occasionally the screen scrolls all the way down leaving a black area at the top of the screen