Umlauts(Special characters)replacement

Hi
I have the requirement where i need to convert Umlauts(characters of another language like Ö,ü etc) to simple english like oe,ue.
I'm using the following code for conversion.
          String specialChar[]={"Ä","Ö","ö","ü","ä","Ü","
                   String htmlChar[]={"AE","OE","oe","ue","ae","UE","","",""};
                  for(int i=0;i);
If checked in eclipse,this works fine and conversion happens.
However, when i import the code as an archive it converts to:
          String specialChar[]={"�","�","�","�","�","�","
                   String htmlChar[]={"AE","OE","oe","ue","ae","UE","","",""};
                  for(int i=0;i);
The special charaters come as boxes and for some reason no conversion happens.
Can anyone tell me what is the problem and what is the solution to it?

If the problem is only for few characters, then you may use this in the module chain
localejbs/Seeburger/ReplaceString        Local Enterprise Bean          key
Then in module key parameter
key               searchString         "Ue"
key               replaceString        "UE"
Regards,
Prateek

Similar Messages

  • Dir listing with umlauts / special characters

    I've got a directory tree, where several files have umlauts or french accented characters in their names.
    When I do 'ls' in such a directory, I can see the umlauts fine in Terminal, e.g.:
    Die rote Wüste - Michelangelo Antonioni.avi
    Nazarin - Luis Buñuel (span, eng sub, 1959).avi
    I've got the environment variable LC_CTYPE=UTF-8.
    However, when I do this: 'ls > /tmp/f.txt'
    and then open the text file in TextEditor, I get this:
    Die rote WuÃàste - Michelangelo Antonioni.avi
    Nazarin - Luis BunÃÉuel (span, eng sub, 1959).avi
    Does anyone have an idea, how to fix this?
    (BTW: I've got a similar problem when I rsync these files ...)
    Thanks a lot in advance.
    Best regards,
    Gabriel.

    Well, I've been using /Applications/TextEdit for these files, because I was assuming that it handles UTF-8 automatically.
    I opened the files now with Vim (my favorite editor), and, lo and behold, all special characters are fine!
    I think, that solves my problem, because I can even copy-and-paste the text from Vim into my notes.
    Best regards,
    Gabriel.

  • Need help in using replace function with special characters

    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK'S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, ''', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    George

    george91 wrote:
    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK'S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, ''', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    GeorgeHa! The codes you specified rendered in the HTML, but showed properly when I listed your original posting above. I didn't understand what you meant initially because the 5-character string represenation got rendered as the quote that you said you weren't able to get - a display problem.
    You're getting prompted for the substituon variable because of the ampersand; you appear to be doing this in SQL*PLUS. The first thing I would try is to SET DEFINE OFF when using the ampersands to see if that works. If That doesn't work check the docs to delmit the ampersand (I think its a backslash before it but can't remember offhand). Another, harder option might be to use the TRANSLATE function replacing the literal character instead of using REPLACE (though replacing a quote will be a little tricky). If you're on 10g also consider using the advanced quoting
    Good luck!
    Edited by: riedelme on May 22, 2009 12:45 PM

  • How to replace special characters in string.

    Hello,
    I want to replace special characters such as , or ; with any other character or " ".I find out there is no such function is java for this.There is only replace() but it accepts only chars.If anybody know how to do this?.
    Thanks,

    Hello,
    I want to replace special characters such as , or ;
    with any other character or " ".I find out there is no
    such function is java for this.There is only replace()
    but it accepts only chars.If anybody know how to do
    this?.
    Thanks,Can't you just do the following?
    public class Test
         public static void main(String[] args)
         String testString = "Hi, there?";
         System.out.println(testString.replace(',',' '));
    }

  • How to replace special characters in Purchase order item text in ECC 6.0

    Hi All,
    Now i am working in ECC environment.
    I am unable to replace the special characters in the PO short text for example take the following text.
    Job#Burst Fire 3930-00092#Heater Control
    here i want to replace # symbol with space.
    i used  replace all occurences, find , transfer, overlay keywords to replace thta special characte but it is not replacing that character.
    i used replace_string FM also.it is also not working.
    please help me out in this. points will be rewarded.

    Hi Praveena,
    what replacement(s) did you try?
    Please
    replace all occurrences of
    CL_ABAP_CHAR_UTILITIES=>newline
    CL_ABAP_CHAR_UTILITIES=>cr_lf
    CL_ABAP_CHAR_UTILITIES=>form_feed
    CL_ABAP_CHAR_UTILITIES=>horizontal_tab
    CL_ABAP_CHAR_UTILITIES=>vertical_tab
    CL_ABAP_CHAR_UTILITIES=>backspace
    CL_ABAP_CHAR_UTILITIES=>minchar
    CL_ABAP_CHAR_UTILITIES=>maxchar
    minchar is HEX u201900u2018 in non-Unicode systems, U+0000 in Unicode systems
    maxchar is HEX  Xu2018FFu2018 in non-Unicode systems, U+FFFD in Unicode systems
    If it still does not help, check the remaining # characters in debugger, switching to hex mode: Then you may see what it is.
    Regards,
    Clemens

  • Replacing special characters from xml document/text inside element

    Hi
    Is there any way to replace the xml codes to special characters inside an entire xml document/ for a text in element.
    I want to get the xml codes to get replaced to respective special character(for any special character)
    Please see the sample xml xml element below
    <Details>Advance is applicable only for &lt; 1000. This is mentioned in Seller&apos;s document</Details>
    Thanks in advance .. any help will be highly appreciated.

    So, just to be sure I understand correctly, you want this :
    <Details>Advance is applicable only for &lt; 1000. This is mentioned in Seller&apos;s document</Details>
    to be converted to :
    <Details>Advance is applicable only for < 1000. This is mentioned in Seller's document</Details>
    If so, I'll say again : the resulting XML document will be invalid.
    Extensible Markup Language (XML) 1.0 (Fifth Edition)
    The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings " &amp; " and " &lt; " respectively. The right angle bracket (>) may be represented using the string " &gt; ", and MUST, for compatibility, be escaped using either " &gt; " or a character reference when it appears in the string " ]]> " in content, when that string is not marking the end of a CDATA section.
    Ask whoever "they" are why they would want to work with not wellformed XML.

  • RFC call from portal to CRM - Special Characters are replaced

    Hi All,
    I am trying to call an RFC which gives the user information. I pass the portal username.
    Issue is when the user name has special characters 'ä'  are replaced by 'Ã#'.
    Iam using SAP CRM ABAP 7.0.
    Please let me know how to solved it.
    Thanks in advance..
    Thanks and Kind Regards,
    Basheer.

    Possibility is your one of the system is Unicode & other is non unicode.

  • Need help in replacing special characters in a string

    Hi,
    please let me know the best way to replace all the special characters in a string with space.
    other than alphabets and numbers
    with regards.
    sumanth.

    please let me know the best way to replace all the special characters in a string with space.
    other than alphabets and numbers
    >
    Sumanth Nag Kristam wrote:
    > actually i need to replace hexa decimal char 0X1A in a string.... that is 'substitue' as per the chart
    > any pointers....
    >
    > chk the link for the ASCII codes
    > http://www.techonthenet.com/ascii/chart.php
    But in Hexa decimal value there is no special characters?

  • Replace all special characters in a String with underscore

    I have a String which contains some special characters even(!,$,@,*....).
    I need to replace all the special characters with _ in my String. I do have an idea of using String.replace() and analogous forms, but I would be thankful if anyone can suggest me of a better and an efficient way.
    regards,
    fun_one

    Kaj,
    Thx for your earnest reply. I did have a peep into the API on this method. But the regular expression that I need to use here was beyond my understanding. It did specify some regex that I put to use (something like myString("\D","_"), assuming that I need to replace all non-digit characters ), but it really did not help me getting the result.
    Would you spare some code for me reg. the usage of regular expressions in such a scenario?
    cheers,
    fun_one

  • Replace Special Characters in a string + XQUERY

    Hi All,
    I am using the following replace function to replace the special characters in my XQUERY.
    *replace($string1, '[&"-*;-`!|:,¿/{}@#$%^*~()_+-]', ' ')*
    Fortunately it is replacing all the special characters. But the only problem here is it is even replacing capitol letters in to spaces, which I don't want.
    Please help me out!!

    Hi
    <<< What did u change >?> I dont see any change with the Regex ?  >>
    if you observe in the modified function, he just removed (*) inside the replace funtion.
    Thanks
    Shankar AUNV

  • Some special characters getting replaced by ? in TOAD

    Hi,
    I am using TOAD for updating a few records in the DB. Some special characters (non-english) like Staříč get replaced by Sta?í? in TOAD. I tried to set the characer set to default and East Europe under Editor Options, but it still doesn't work.
    Any suggestions?

    i) Verify your DB characterset can handle these characters
    ii) Verify that the correct values are being stored (use dump function)
    iii) Verify that NLS_CLient settings match NLS_Server settings
    iii) Verify that this is not a windows display issue. ie Windows has been set up to display these characters.
    One suggestion is to use OracleSQLDeveloper. You won't have any display issues then. :)
    I use it to display arabic charcters and I don't need any registry changes etc
    Edited by: Keith Jamieson on Dec 8, 2008 10:47 AM

  • How to replace XML special characters using Xpress e.g. ' = '

    Hellos
    I need to write some XML built from resource data.
    The resource data strings can contain anything e.g. & ' " < and > characters.
    How do I replace these characters with the strings & &apos; " etc.... from within Xpress?
    I try something like:-
    <set name='testchar'>
    <switch>
    <ref>thisLetter</ref>
    <case>
    <s>'</s>
    <s>&apos;</s>
    </case>
    <case>
    <s>"</s>
    <s>"</s>
    </case>
    <case default='true'>
    <ref>thisLetter</ref>
    </case>
    </switch>
    </set>
    But when saved the <s>&apos;</s> gets saved as <s>'</s>
    Is this impossible with Xpress forcing me to invoke my own Java class? (which is a pain to do because of internal politics re restarting of App Server).

    Hmmmm seems there is transformation in this set up too.
    What I am trying to do is to parse a string which may or may not contain XML special characters into an XML acceptable string.
    e.g. transform the surname O'Connor into O&apos ;Connor (with no embedded blank)
    I wish to write a rule which uses XPress language to achieve this.
    I want to convert the character ' into the string &apos ; (with no blank between apos and ;) and similar for the other XML specials.
    Is this possible?

  • Problem with special characters (umlaut)

    Hi,
    I have a text box in my form.
    when I am entering the normal characters it working fine and the values are
    persisting quiet well in the database but when I am entering special characters (umlaut characters),
    it is not storing them properly in the database.
    I have checked in the logs at the application server side and the problem is while getting the values from
    the request. The JSP which is submitting the request I have explictly put the following line:
    request.setCharacterEncoding("iso-8859-1");
    But this also not seems to be working.
    Could you please let me know the resolution of this problem.
    Thanks in advance
    Amit

    Hi,
    Thanks for the reply.
    I have checked the database and there is no problem there.
    To check if I am getting the correct values from the JSP I have put the following code in my action class:
                                  if(columnName.equalsIgnoreCase("REMARKS"))
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       String str = value.toString();
                                       char[] remarkArray = new char[str.length()];
                                       str.getChars(0, (str.length()-1), remarkArray, 0);
                                       for (int i = 0; i < remarkArray.length; i++)
                                            log.debug("Encoding value of "+remarkArray[i]+" is "+Character.getNumericValue(remarkArray));
    In the remarhs I am setting the value in the form as "������"
    and I am getting the following in the logs:
    Character Encoding value of &#9472; is -1
    Character Encoding value of � is -1
    Character Encoding value of &#9604; is -1
    Character Encoding value of � is -1
    Character Encoding value of � is -1
    Character Encoding value of � is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of � is -1
    Encoding value of &#9500; is -1
    Encoding value of is -1
    Kindly suggest what may be the issue??
    Amit

  • Replace function - special characters

    Hi All,
           If my column is encountering special characters I would like to replace with blank. Special characters may vary from record to record. Sometimes it is @ sometimes $,!,,$,^,<,&,<,>,?,",{,},+,_,),(.
    Do we have any function same like replace that can replace all special characters, whatever it encounters with required value?
    - please mark correct answers

    Take a look at this article
    T-SQL:
    How to Find Rows with Bad Characters
    and check See Also section in that article for more articles on that topic.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles
    Thanks Naomi
    - please mark correct answers

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

Maybe you are looking for

  • Upgrade from 10.3.0 to 10.3.6

    Hi, I have to update my weblogic environment from 10.3.0 to 10.3.6 . In the next picture there is my architecture http://imageshack.com/a/img89/6949/2lci.png . The problem that I have is that I want to reduce the time off of the service because is in

  • S-Video Distance Limit

    Is there a distance limitation when using the S-Video output? (MX400 specifically) Tks, Earl

  • The network connection timed out

    i am trying to download an ipod software update on a 56k modem, the update gets about one third done and then a message pops up stating that the network connection has timed out and i need to check my network settings. Also when i run network diagnos

  • Create hierarchy for a dimension in Oracle Express Administrator

    I have a lookup table called 'Location'. This lookup table has a primary key PKLOC which is made up of 2 columns, State Varchar2(20) and City Varchar2(20). This primary key obviously is a lookup for a dimension of one of my cube and the data in the p

  • Please help me solve my kernel panics

    I have been having kernel panics almost daily for about 2 weeks and I can't figure out what to do. I have tried repair disk, repair permissions and no luck. I ran software update and everything is updated. Here is my latest panic report. Any help wou