Convert special characters

hi
is it possible to read the below text with pl/sql??
ïq¿ÁkÜ/‡ùôL•

Yeah. As long as your NLS_LANG is set properly to handle these characters? What are these characters? Are they in ISO-8859? UT8?
Cheers
Sarma.

Similar Messages

  • To convert special characters to English characters.

    Is there any functional module to convert special characters(Latin) to English characters?

    Hi Meera,
         Welcome To SDN!!
    try using the function module 'SCP_REPLACE_STRANGE_CHARS'.
    Give the variable with special characters in intext.
    Regards
    Kiran Sure

  • HTML Editor - converting "special characters" into entities

    Hi everyone,
    I'm currently in the middle of formatting my wife's novel into 'clean' html so I can use Calibre to create a well formatted epub/mobi/etc.
    I've read that TextMate on Mac includes a function to "Convert Selection to Entities excluding Tags".  In other words it will replace all special characters (ellipses, copyright sign, etc) with the html entities.
    I'm currently using Kate and I can't seem to find anything similar.  Is anyone aware of any linux editors with the same function?
    Thanks for the help!

    ctarwater wrote:Encoding is already UTF-8 but I'm trying to make these docs as "universal" as possible and I've read that little things like replacing quotation marks and other symbols with their html entities is a good step in that direction.
    In situations with multiple encodings this might be the case, but the XML spec requires UTF‐8 support at minimum and defaults to it when the encoding is not declared. All XML parsers can deal with UTF‐8.
    In fact, replacing UTF‐8 characters with entities is less portable in XML. This is because the available entities are defined by the doctype, and XML only supports five by default (<, >, ", &, and '). Things like … are defined in the HTML and XHTML doctypes, but not in other dialects of XML. This used to bite RSS pretty hard (probably still does), because people assumed the entities were available everywhere when they’re really not. EPUB and Mobi are based on XHTML, but other formats might use other XML dialects.

  • How to convert special characters in ABAP to XML?

    Hi All.
    We have a scenario where from XI (exchange Infrastructure), a BAPI is called which returns an XML. From that XML, a PDF is generated.
    Now, if the XML contains any special characters, it will fail.
    So if any CHinese char or >, # etc signs are there, it fails.
    Can you please tell me how to convert my string in ABAP to a proper XML?
    I am new to it and I was trying the following code
    DATA: today TYPE string,
          result TYPE string.
    today = 'This is testing'.
    CALL TRANSFORMATION ID
         SOURCE today = today
         RESULT XML result.
    IF sy-subrc = 0.
      WRITE result.
    ENDIF.
    But it does not return me anything.
    Thanks in adv.

    hi
    good
    go through these links,hope these would help you to solve your problem
    http://www.sap-press.de/download/dateien/792/sappress_abapreference_2edition.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    thanks
    mrutyun^

  • Auto convert special characters

    Good day all and thanx for your help.
    CS3 & trying out CS5.
    A couple of the sites I do, are written in Afrikaans, ons of the 11 official languages in South Africa.
    Afrikaans makes use of characters such as ê, ë, ô, ü, é, ö and so on. I normally forget to change it in code view and make use of &... It then displays as funny characters in browser. Is there a way I can learn/tell DW to auto change my special characters or do you perhaps have a good solution or tip for me.
    Thank you very much.
    Regards,
    Deon

    Hi Deon,
    that happens to me very often too. So I too thought it would be nice to change the special characters automatically. All I've found at that time was a payment program (in those days for CS3). It's still here after all:
    http://www.experts-exchange.com/Web_Development/Software/Macromedia_Dreamweaver/Q_22706485 .html
    Meanwhile, I'll do it in another way. When I finished one of my sides, I use the "Find and Replace"-function of DW. I start searching one of the special characters and after changing them (if necessary), I only replace one character and can start a new action. Look here for example (from my German DW where we have the same problems in our language):
    The general way to insert the special characters you know, I suppose. If not, here you will find a nice tutorial:
    http://www.recipester.org/Recipe:Insert_special_characters_in_Dreamweaver_27537484
    or
    http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7ccca .html
    Hans-G.

  • How to convert special characters like #, &, etc occuring in the input string

    Hi,
              I am using method 'Get' to submit a form . When ever there is any
              special character like '#' in my input For example "033#Test", nothing
              gets posted beyond 033.
              Can any one please let me know how do I overcome this problem.
              Thanks in advance.
              Regards,
              Moin
              

    Moinuddin:
              It seems possible your browser may be confused by the fact that 033 is
              the octal representation for an ESCape character (Hex 1B). Try dropping
              the leading zero. In addition, it is usually better to represent special
              characters like the hash mark "#" using HTML character entities instead
              of literals, i.e. # = hash mark
              Regards,
              Jim Brown
              Moinuddin Ahmed wrote:
              >
              > Hi,
              > I am using method 'Get' to submit a form . When ever there is any
              > special character like '#' in my input For example "033#Test", nothing
              > gets posted beyond 033.
              >
              > Can any one please let me know how do I overcome this problem.
              >
              > Thanks in advance.
              > Regards,
              > Moin
              Jim Brown
              Developer Relations Engineer
              BEA Support
              

  • Abap TO CONVERT SPECIAL CHARACTERS TO SPACE

    I have a field in BI "zpustreg" which has values with - and # which is not allowing me to load the data to cube so I am writing this code in transformation to convert any special character to space. but it is having error if you can help me fix the code below would really appreciate it
    <b>Abap Code to Load ZPUSTREG</b>
      METHOD compute_ZPUSTREG.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-/BIC/ZPUSTREG TYPE /BIC/OIZCUSTREG
       EXPORTING
         RESULT type tys_TG_1-/BIC/ZPUSTREG
        DATA:
          MONITOR_REC    TYPE rsmonitor.
    $$ begin of routine - insert your code only below this line        -
    ... "insert your code here
    *DATA:Monitor_REC TYPE rsmonitor.
    DATA:L_D_OFFSET LIKE sy-index.
    CONSTANTS:c_allowed(60) TYPE c.
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    RESULT = SOURCE_FIELDS-/BIC/ZPUSTREG
    TRANSLATE RESULT TO UPPER CASE
    DO 60 TIMES.
    L_d_offset = sy-index – 1.
    IF RESULT+1_offset(1) CO c_allowed.
    Else.
    RESULT+1_d_offset(1) = ` ’.
    ENDIF.
    ENDDO.
    ENDMETHOD.
    <b>
    E:Statement "VALUE" is not defined. Check your spelling. spelling.
    E:Unable to interpret "C". Possible causes of error: Incorrect spelling</b>
    Thanks
    Soniya

    Hello Soniya
    There is simply a '.' at the wrong place:
    CONSTANTS:c_allowed(60) TYPE c.  "<- wrong, remove
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    CONSTANTS:c_allowed(60) TYPE c
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    That's it.
    Regards
      Uwe

  • Report Query - Download data - converts special characters

    When I'm doing a select from a table which has a "<" or ">" sign it is being changed to &lt; or &gt; when I view the XML data that is being downloaded. Is there any way to prevent it from doing this?

    What I'm finding is that when master detail data is dumped in XML it is being dumped as individual rows.
    <DOC>
    <ID>12341</ID>
    <RC>23456</RC>
    </DOC>
    <DOC>
    <ID>12342</ID>
    <RC>34567</RC>
    </DOC>
    <DOC>
    <ID>12343</ID>
    <RC>45678</RC>
    </DOC>
    What I'm trying to achieve is this ...
    <DOC>
    <ID>12341</ID>
    <RCROW>
    <RC>23456</RC>
    <RC>34567</RC>
    <RC>45678</RC>
    </RCROW>
    </DOC>
    This is how one should expect the data to look... not as my first example. Can I do this with plsql... most definitely. However, the report query tool wants a select statement. You can add queries but it will simply output the data as a single row regardless of how many queries you create. Furthermore I thought I might try to introduce subnodes by encapsulating the data with <> but unfortunately any special data will get converted to html code. So when I read it with text viewer software I can see these replaced with &lt; and &gt; Within the report query tool you can't create a select which will format the data (as per my second example). I'm trying to use reporting software which will expect the data as per my second example so that it will appear grouped and sorted properly but it won't work if the rows are being treated as individual lines as in my first example. I'm not sure why Oracle would not allow you to sort and group it this way since any XML data I've seen, seems to be grouped as per my second example and not as they have implemented it. I have no idea as to how to create this format to the data using report queries given the data will get converted to HTML.

  • Creating xml and converting special characters

    I am trying to creating an xml representation of some data. I have created various methods for creating the various parts of the structure.
    But is there an easy way to transform invalid xml characters to the xml representations (such as converting to a particular charset) e.g & -> amp;
    public class XMLTagDisplayFormatter extends AbstractTagDisplayFormatter
        private static XMLTagDisplayFormatter formatter;
        protected static final String xmlOpenStart = "<";
        protected static final String xmlOpenEnd = ">";
        protected static final String xmlCloseStart = "</";
        protected static final String xmlCloseEnd = ">";
        protected static final String xmlSingleTagClose = " />";
        protected static final String xmlSingleDataTagClose = "]] />";
        /** Return xml open tag round a string e.g <tag> */
        public static String xmlOpen(String xmlName)
            return xmlOpenStart + xmlName + xmlOpenEnd;
        public static String xmlOpenHeading(String name,String data)
            return(xmlOpen(name+" id=\""+data+"\""));
        /** Return xml close tag around a string e.g </tag> */
        public static String xmlClose(String xmlName)
            return xmlCloseStart + xmlName + xmlCloseEnd;
        public static String xmlSingleTag(String data)
           return xmlOpenStart + data + xmlSingleTagClose;
       public static String xmlFullTag(String xmlName,String data)
           return     xmlOpen(xmlName)
                   +  data
                   +  xmlClose(xmlName);
        StringBuffer sb = new StringBuffer();
        public void   openHeadingElement(String type,String value)
             if(value.equals(""))
                 sb.append(xmlOpen(type));
             else
                 sb.append(xmlOpenHeading(type,replaceXMLCharacters(value)));
        public void   openHeadingElement(String type,boolean value)
          openHeadingElement(type,String.valueOf(value));
       public void   openHeadingElement(String type,int value)
            openHeadingElement(type,String.valueOf(value));
        public void   closeHeadingElement(String type)
            sb.append(xmlClose(type));
        public void addElement(String type, String value)
            sb.append(xmlFullTag(type,replaceXMLCharacters(value)));
        public void addElement(String type, int value)
            addElement(type,String.valueOf(value));
        public void addElement(String type, boolean value)
            addElement(type,String.valueOf(value));
        public String toString()
            return sb.toString();
        public AbstractTagDisplayFormatter getInstanceOf()
            if (formatter == null)
                formatter = new XMLTagDisplayFormatter();
            return formatter;
    }

    Thanks,
    Ive written this method which seems to work for me although Im only using it for debugging.
    public static String xmlCData(String xmlData)
            char tempChar;
            StringBuffer replacedString = new StringBuffer();
            for(int i=0;i<xmlData.length();i++)
               tempChar = xmlData.charAt(i);
               if(
                   (Character.isLetterOrDigit(tempChar)==true)
                   ||
                   (Character.isSpaceChar(tempChar)==true)
                   replacedString.append(tempChar);
               else
                   replacedString.append("#x"+Character.digit(tempChar,16));
             return xmlCDataTagOpen + replacedString + xmlCDataTagClose;
        }

  • How to convert special characters like #, &, etc occuring in the input stri

    Hi,
    I am using method 'Get' to submit a form . When ever there is any
    special character like '#' in my input For example "033#Test", nothing
    gets posted beyond 033.
    Can any one please let me know how do I overcome this problem.
    Thanks in advance.
    Regards,
    Moin

    Before you send the form parameters you need to url-encode them. Like this:String param1="param=033#Test";
    String encodedParam1 = java.net.URLEncoder.encode(param1);Then send the encoded version, which if you examine it you will see looks like "033%25Test".

  • Output proper special characters in JSTL custom tag

    I've written a custom JSTL Tag and want to output proper encoded special characters, like the c:out tag does (example: > to >). Do I have to parse that manually or is there a method within the jsp-api?

    Custom JSTL tag ?????Oops. Custom tag, of course.
    In custom tags, you have to manually parse it AFAIK.Somehow I can't imagine that such a frequently needed feature has do be done manually. Almost every tag that has to output data, has to convert special characters, otherwise cross-side-scripting would be possible.

  • Replacing 'special' characters

    Hi all,
    I was wondering if thers is a function module, class (method) or whatever (codepage translation) to convert 'special' characters like:
    è, é, ë, ï, etc with respectively e, e, e, i?
    More generally speaking we need to convert all characters (whether it be Unicode, Latin-1, etc.) to plain text containing only the letters of the alphabet from a-z and A-Z.
    Kind regards,
    Micky.

    @ Rainer,
    both thanks a lot for your relevant replies which are quite helpful. And I do think that we still needs some sort of intermediate table to hold at least some characters to be translated/converted into plain text.
    @ Gautham,
    I'm currently testing this function module with several codepages (parameter INTER_CP) beside the default codepage 1146. For characters like ë and ï this is definitely the way to go, but when using some characters that are really out there like ¥ŖßÞu0152u03A9u03C6, we still seem to be needing an intermediate table to replace these characters.
    But again, some very helpful answers.
    P.S. Although both answers are potentially worth 10 pts, It only seems fair to give you both the credit you deserve.

  • Problem with special characters getting converted into '#'  in portal

    Hi All,
    The special characters like " - ", " ' ", " ` ",  are getting converted into '#' when the smartform is displayed in portal.
    I have a smart form in which the text contains the above special characters and they are getting displayed as  ' # ', when the form is invoked in portal. We are not able to trace the problem.
    I need your input on this ASAP.
    Thanks in Advance,
    Sowmya

    This could be caused by conversion routine on the field.
    in sapscript, can use &FIELD-NAME(K)& to ignore conversion routine
    To see this and other options, in text edit of script select menu option Insert>Symbols>New  and then type field name and select desired check box options - field will be placed in script with relevant formatting characters
    Andrew

  • Convert HTML special characters to String

    Hi,
    I'm looking for an easy way to convert HTML special characters (like "&#246") to String.
    Any Ideas how implement this? Thanks

    Hi,
    I'm looking for an easy way to convert HTML special
    characters (like "�") to String.
    Any Ideas how implement this? Thankswell im assuming that you mean that when you are working with java you will be getting a ? instead of the character you want. assuming that you are reading and writing to this html file. if not well maybe this can stil help : BufferedReader inFile = new BufferedReader(new InputStreamReader(new FileInputStream(fileName),"ISO8859-1"));
    PrintWriter outFile = new PrintWriter(new OutputStreamWriter(new FileOutputStream(fileName2), "ISO8859-1")); basically you need to make sure that ou define ISO8859-1 as the encoding.

  • Converting PageMaker doc to pdf: problem with special characters

    I am using PageMaker 7 on Windows XP. I converted a PageMaker document to pdf (I use Acrobat 8 Professional), which worked fine except for two special characters that didn't convert:  ć and ş, which convert as ae and a degree sign. What can I do to convert the document properly?
    Thanks!

    You may want to ask in the Acrobat forum since Reader is simply viewing the results.
    But I would suspect that you are having font embedding issues. Check to see that all fonts are embedded in the document. File>Properties>Fonts.

Maybe you are looking for

  • I would like to upgrade my operating system, but still have Leopard and don't know how to make the "leap" to newer software.

    I have a makbook pro, running with Leopard (10.5.8).  I know that I missed both Lion and Snow Leopard and want to know the best way to upgrade.  Do I need to buy both in addition to Mountain Lion?  Will my computer even run Mountain Lion?  I need ste

  • How to determine the type of the jobject... similar to instanceof

    hi, I would like to know how to determine the jobject reference of an instance is of which class. this is something similar to instanceof we use in java. is there any thing like 'instanceof' in JNI. if there how to use it? i got this as objective que

  • Iweb site wont launch in IE6 - please help

    I have a basic website in i web. I've built the splash page and that works perfectly in all browsers except Internet Explorer 6. It won't even launch i just get the bing search engine. Again it launches and works well in all other browsers and window

  • File/FTP to ABAP Proxy (file as attachment)

    I have the following scenario: File/FTP -> XI -> ABAP Proxy but not the normal case. What I need is the picked file as attachment and the file name. I hope this is possible. I have found the following blogs: /people/michal.krawczyk2/blog/2005/11/10/x

  • Advance not hiting to Budget

    Dear Guru I'm facing One problem   I have one project profile  for maintenance of HR activities. i created BASE dept wise,each dept will get the some  Budget for HR activities . for ex 10 DEPT is there I created 10 BASE here scnerio is they are not c