Latin characters such as 'à' must be replaced with the ASCII equivalent 'a'

Hi,
I struck up in my development at "Latin characters must be replaced with the ASCII equivalent".
Do let me know the solution if any of you have implemented it before.
Any kind of help is appreciated.
Thanks
MMK

OK, more in detail ..
I'm generating user ID based on First and Last name, if user enters latin characters as a part of his name, i should replace those LATIN characters with ASCII equivalent while generating unique user ID in the portal.
A requirement for legacy system is that the user id's must contain only ASCII characters, therefore Latin characters such as 'à' must be replaced with the ASCII equivalent i.e. 'a'.
I hope it is more clear ..
Thanks
MMK

Similar Messages

  • Problem in replacing with the unicode equivalent character ?

    Hello,
    I have a situation wherein i must replace
    m with \u3005
    n with \u3006
    o with \u3041
    etc ...,
    I get the codepoint value from the multibyte represenation .
    But the problem is
    I can not replace
    String temp="ename";
    temp.replace('m','\u3005');
    I am not allowed to hard code the value 3005, rather i am suppose to get the code point value from the multibyte representation.
    I have no problem in getting the code point value from the multibyte represenation.
    After i get the code point value i must concatenate the codepoint value with "\u"
    Currently i am following this implementation to do the replacement,
    String rp=null,snd;
    String tmp="ename";
    String hh="";
    for(int i=0;i<tmp.length();i++)
    snd=getCodepoint(tmp.charAt(i));
    if(snd!=null)
    rp=replace(String.valueOf(tmp.charAt(i)),
    String.valueOf(tmp.charAt(i)),"\\u"+snd);
    hh=hh+rp;
    else
    hh=hh+String.valueOf(tmp.charAt(i));
    //The replace method
    public static String replace(String source, String pattern, String replace)
    if (source!=null)
    final int len = pattern.length();
    StringBuffer sb = new StringBuffer();
    int found = -1;
    int start = 0;
    while( (found = source.indexOf(pattern, start) ) != -1)
    sb.append(source.substring(start, found));
    sb.append(replace);
    start = found + len;
    sb.append(source.substring(start));
    return sb.toString();
    else return "";
    Please tell me how to do the replacement
    Because when i display after the replacement is done i get
    e\u3006a\u3005e for the string "ename"
    where as i should be getting special characters in place of 'm' and 'n' in the string
    or i must atleast get e?a?e for the string "ename"
    Please do offer some suggesstions in this regard
    Your suggesstions would be very useful
    NOTE:
    I am not suppose to make use of the method replaceAll( ) to do the replacements
    Thanks and regards
    khurram

    I am getting these errors
    i am not able to understand why
    i looked into the java2 complete reference text
    ther is no method called isHexDigit( ) in it
    pleasae do help
    the errors are as follows
    [systpe@Agni ~]$ javac C1.java
    C1.java:9: cannot resolve symbol
    symbol : method isHexDigit (char)
    location: class java.lang.Character
    if(!Character.isHexDigit(ch))
    ^
    C1.java:11: cannot resolve symbol
    symbol : method digitValue (char,int)
    location: class java.lang.Character
    v |= Character.digitValue(ch, 16);
    ^
    C1.java:15: replace(char,char) in java.lang.String cannot be applied to (java.lang.String,j
    ava.lang.String)
    String subs = "ename".replace("m", String.valueOf(cv));
    ^
    3 errors
    Thanks & Regards
    khurram

  • My iphone is synced and backed up with another computer which is now broken... and i have synced it with a new one but when i want to do anything itunes says all data will be erased and replaced with the current itunes library?what do i do?

    my iphone is synced and backed up with another computer which is now broken...i have synced it with my new computer  but it hasnt transfered anything over to itunes and when i try to add anything to my iphone it says all data will be erased and replaced with the current itunes? i dont want to lose all my apps and music.... i dont know how to go around this problem? i want to back it all up and sync it properly to my new computer so that is now my main computer , so i can add ring tones and music etc with out it erasing everything ive got. any answers would be great and muchly appreciated. thanks, im not sure what operating system my iphone has either.....

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.
    Use your backup copy of your computer to put everything on the new one.
    It sounds like you have failed to do this, which is not good at all.
    You will have to transfer your itunes purchases from your iphone.  Authorize your computer for your itunes account 
    About iTunes Store authorization and deauthorization
    Open itunes, plug in iphone, do NOT sync, click File>Transfer Purchases
    When you do sync you will lose your pics ( photo library - synced from your old computer), your itunes content ( music, apps, videos,etc) , your contacts and your calendars.  So do NOT sync yet.  This is why a backup copy is so important.
    Enter one unique contact and calendar entry on your computer.
    When you first sync, you should get the option to merger the data.  Choose it.
    If you want your pics, then you will need to e-mail them to yourself before you sync.  They will not be of the original quality as they are reduced when synced to iphone.
    When all is as goos as it can be, then backup your computer, and always maintain the backup.

  • I am currently using the adobe cloud service and would like to give my granddaughter my original lightroom and photoshop programs.  Would do I need to do to remove them from my computer to hers?  The lightroom 5 program has been replaced with the cloud ve

    I am currently using the adobe cloud service and would like to give my granddaughter my original lightroom and photoshop programs.  Would do I need to do to remove them from my computer to hers?  The lightroom 5 program has been replaced with the cloud version on my computer.

    Follow the steps listed at  Transfer an Adobe product license
    Lightroom has no activation check so you don't need to do anything to your computer. Your old copy of Photoshop must be deactivated / uninstalled if you haven't already done so.

  • HT4914 Are the older "Protected AAC files" that I have replaced with the unprotected version when I re-download them using Itunes Match?

    Are the older "Protected AAC files" that I have replaced with the unprotected version when I re-download them using Itunes Match?

    Additionally, when trouble shooting, and you disable iTunes Match on an iOS device you cannot simply re-enable it immediately. You must launch the Music app and let the content clear out before re-enabling the service.

  • When i go to sync my apps with my computer it tells me  ''are you sure you want to sync apps ? all exsisting apps and there data on (iphone) will be replaced with the apps on this itunes library'' does this mean all my data will be lost if i continue ?

    when i go to sync my apps with my computer it tells me  ''are you sure you want to sync apps ? all exsisting apps and there data on (iphone) will be replaced with the apps on this itunes library'' does this mean all my data will be lost if i continue ?

    Regarding your broken, previously authorized computer, here's how that works:
    You would authorize your new computer -- maybe you've done that already.  Then you will have two computers authorized.  Apple allows you to have up to five computers authorized at any time.  If you get to five, you can then go to your account details in iTunes and remove all authorizations.
    Bear in mind this is not saying you can synch to more tham one library.  Razmee209 and gdgmacguy's comments above are correct.  But if Apple only allowed you to authorize one computer at a time, then having a broken computer would mean you could no longer use your Apple ID with iTunes.

  • I plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    i plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    Try restoring from the backup created at the beginning of the sync process:
    Without connecting your phone, open iTunes, go to Preferences, on the Devices tab check "Prevent...from syncing automatically"
    Connect your phone, right-click on the name of your phone when it appears on the left sidebar in iTunes
    Select Restore from backup, choosing your most recent backup to restore from
    Disconnect your phone and confirm that your photos are back
    Go back to iTunes>Preferences>Devices and re-enable automatic syncing.

  • I have an old TC (A1302) which I've replaced with the newest version.  I'd like to erase everything from the old TC and, perhaps, resell it.  How do I accomplish the complete erase?

    I have an old TC (A1302) which I've replaced with the newest version (A1470).  I'd like to erase everything from the old TC and, perhaps, resell it.  How do I accomplish the complete erase?

    On your Mac.....
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the old TC, then click Edit
    Click the Disks tab at the top of the window
    Click Erase Disk
    Select the Zero Out Data option.....which will take 4-6 hours depending on the size of the drive on the old TC......if you plan to sell the TC. If you plan to keep the TC, use the Quick Erase option.....which will only take a few minutes.
    Click Erase
    Click the Base Station Menu at the top of the screen
    Click Restore Default Settings and follow the prompts
    The disk has now been securely erased and the network settings have been reset back to factory defaults.

  • I have apps on my iPad and my computer is not connected to the Internet. How do I get my apps to load on the computer ? Because it says the apps on my iPad will be replaced with the apps that are on the computer but there is none there!

    I have apps on my iPad and my computer is not connected to the Internet. How do I get my apps to load on the computer ? Because it says the apps on my iPad will be replaced with the apps that are on the computer but there is none there!

    Authorize the computer in iTunes -- Store>Authorizie this computer.  Transfer the purchases from the iPad into iTunes and then you can sync with iTunes. Read this for instructions on transferring purchases from the iPad into iTunes.
    Transfer purchases.
    http://support.apple.com/kb/HT1848

  • ABAP interfaces build using BDC and BAPIs can be used/replaced with the XI?

    Hi,
      We have develeloped our interfases using BDC and BAPIs. Now our client has decited to implement XI. Now could you please help in finding whether these interfaces can be used/replaced with the XI.
          If yes, please let us know how?
    Thanks and Regards,
    Shweta

    Singh,
    Check this threads where they have discussed on how to use them with XI:
    import BAPI into XI
    Re: interface of xi with bapi
    Re: BDC
    Regards,
    ---Satish

  • My iPhone is having problems and I have to send it into Apple to get a fixed but in the mean while I need a phone. Could my old env touch act as a temporary replacement with the data plan? And if so how to I activate it with going to Verizon and once I ge

    My iPhone is having problems and I have to send it into Apple to get a fixed but in the mean while I need a phone. Could my old env touch act as a temporary replacement with the data plan? And if so how to I activate it with going to Verizon and once I get my IPhone back will I be able to activate it without going to the Verizon store?!? Thanks:)

    Im sorry. Im on my ipad and i didnt read that.
    Sorry again

  • What does this mean and how do I fix it? Error ITMS-9000 "Invalid Code Signing The executable ´viwer.app/ viewer´ must be signed with the certificate that is contained in the provisioning profile"

    What does this mean and how do I fix it? Error ITMS-9000 "Invalid Code Signing The executable ´viwer.app/ viewer´ must be signed with the certificate that is contained in the provisioning profile"

    If you had Firefox save your Yahoo password, first try deleting that here:
    orange Firefox button ''or'' classic Tools menu > Options > Security > "Saved Passwords"
    The "signed out" message seems to be related to how Yahoo authenticates you. Some users have reported that disabling automatic proxy detection solves the problem, and it also resolves an issue of getting logged out every few minutes, if you have ever experienced that.
    To make the change:
    orange Firefox button ''or'' classic Tools menu > Options > Advanced
    On the "Network" mini-tab, click the "Settings" button, then choose "No Proxy" and OK your way back out.
    If your work connection requires you to use a proxy server, try the "Use system settings" option instead.
    Does that help?

  • I have an a faulty iPhone 5 1GIG. Can I replace with the new one?, I have an a faulty iPhone 5 1GIG. Can I replace with the new one?

    Hi there,
    Currently, I have an a faulty iPhone 5 1GIG. Can I replace with the new one?, I have an a faulty iPhone 5 1GIG. Can I replace with the new one?

    Key in your iPhone serial number here, if iPhone is one of them, they will repair for free:
    https://ssl.apple.com/support/iphone5-sleepwakebutton/

  • I updated my iPhone to the new IOS6 and my awesome Google map app was replaced with the sucky, horrible, awful Apple map app. I want my Google navigator map app back!!!!!!

    I updated my iPhone to the new IOS6 and my awesome Google map app was replaced with the sucky, horrible, awful Apple map app. I want my Google navigator map app back!!!!!!

    I agree. I liked the previous map app.  The version 6 app is powered by tomtom, I think.  No more street view. I don't care for the new overhead view when dropping a pin.  Plus, the current map app doesn't have the local points or data base that the google maps app had.  Too bad I can't go back to the old map app.

  • After I installed ios7, I entered the wrong Apple ID. How do I replace with the correct ID?

    After I installed ios7, I entered the wrong Apple ID. How do I replace with the correct ID?

    OK, so all you need to do is:
    Go into Settings>iTunes, tap on the Apple ID and then tap on Sign Out. Then sign back in with your new Apple ID.
    Go to Settings>iCloud, scroll to the bottom and tap on Delete Account (it will ask you for a password). Try typing in the password that you think goes with that Apple ID. If that doesn't work, try your current Apple ID password. If that doesn't work, go into Manange your Apple ID and sign on with the old Apple ID and reset the password:  https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Once you have deleted the old iCloud account, you can then go to Settings>iCloud and sign on with your current Apple ID.
    Cheers,
    GB

Maybe you are looking for