Regex and Extended Chars

Hey guys,
I am looking for a regex that will allow only ascii chars and not extended chars. Can someone please help me out with that? I have written this bit of code that will remove extended ascii chars but I was looking for a regex. Any ideas?
  //this is what I have to remove ascii chars.
   public static void main(String[] args){
        String str = "123asd.32#$%^&*()_+={}|\\;";
        str +=  (char)128;
        str +=  (char)129;
        str +=  (char)130;
        str +=  (char)131;
        str +=  (char)132;
        System.out.println(str);
        str = removeExtenedChars(str);
        System.out.println(str);
   public static String removeExtenedChars(String str){
        StringBuffer sb = new StringBuffer();
        StringCharacterIterator it = new StringCharacterIterator(str);
        for(char c = it.first(); c != CharacterIterator.DONE;c = it.next() ){
           int asciiVal = (int)c;
           if(asciiVal > 0 && asciiVal < 128){
                sb.append(c);
        return sb.toString();
   }

String asciiOnly = "your string".replaceAll("[^\u0000-\u007f]+","");

Similar Messages

  • WPA key with ASCII extended chars

    Hi,
    first of all, sorry my english.
    I want to connect to a WPA wifi connection with my iPhone 4 but is impossible. My WPA key include ASCII extended chars as "¿","ñ" or "á" to give more security to my network and my iPhone says all the time "Impossible to join". I can connect with all my computers and other mobile phones.
    If I remove all this characters, I can connect without problems with my iPhone.
    It is a bug or a limitation from iOS? Is possible make a request to Apple to fix this?
    Thanks!

    you really should be only using the "printable ascii character set" of 95 (96?) characters. does extended mean the entire ascii character set of 0-255?
    by any chance do you have an airport extreme? Or a Time Capsule?
    if yes, you can load airport utility and use the WPA Pre-Shared key as an alternative to typing in the password with extended characters. ive done that with my kindle. it gives you the hexadecimal equivalent hash of your ssid and your password. you run airport utility, select base station and click on "Equivalent network password"
    have you tried sending the password to the iphone with SMS or an email and using copy and pasting it in settings?
    ive done that, but ive noticed that sometimes notes puts in an extra linefeed that doesn't work. iirc the messaging program put in a extra linefeed in the middle of my password and i had to copy it from messaging to notes to delete the linefeed and then paste it into settings
    i wonder if iphone configuration utility can be used, i haven't tried that one yet
    other routers might reveal the hexadecimal equivalent password

  • Issues with extended chars in names

    Are there any known issues with this API when either the eDir name or GW
    name contains extended chars? I'm encountering numerous problems creating
    users and modifying settings (e.g. visibility) with the 8.0.1 client with
    both the 7.0.3 and 8.0.1 backends, after a customer reported issues when
    using the 8.02hp1 client.
    TIA, John

    I have a system with 2 cRIO's each with Ethercat extension chassis.  Each cRIO hosts ~100 NSV's and is running the scan engine at 40 Hz.
    Each cRIO is coupled to a HMI that has front panel control bindings to NSV's hosted on the cRIO as well as a windows hosted mirror library (used for citadel db logging) that is also bound to the cRIO NSV library.  The cRIO's have monay months of contiguous run time without reboot and I closely monitor cpu and memory usage and also rt performance metrics and will log faults if there are any such events.  I also use NSV's for messaging from the HMI to the cRIO for such things as setting zero offset values and deploying configuration parameters.  My overall findings are that the SV engine and the PSP are stable and efficient (especially NSV<->NSV and NSV<->HMI binding)

  • Time Capsule Access Control and Extended Network Question

    I have a Time Capsule where I have set up a wireless network access list…and extended the network using an Airport Express unit. The Airport Express unit also has settings for an Access Control list. Do these need to be the same as the those for the network from TC that it is extending…or does that happen automatically…and if not what on earth are they for?
    Thanks for any help…this doesn't seem clear from what I've read/seen.
    James

    I have a Time Capsule where I have set up a wireless network access list…and extended the network using an Airport Express unit. The Airport Express unit also has settings for an Access Control list. Do these need to be the same as the those for the network from TC that it is extending…or does that happen automatically…and if not what on earth are they for?
    Unfortunately, they are not automatically applied to each base station in an extended network. You would have to manually enter the exact same list in each base station.

  • Creating a new context in OID and extending DIT

    I am developing a portal. I need to create a new context in the OID and extend the DIT so that i can store Subscriber information in it. Please help me with the procedure, and sample schema.
    thanks in advance,
    udai.

    Hello JB-Baby
    You can't create a subfolder in Sent. Mail does this automatically for each account you set up. If you wish to organise messages you send by some criteria or other, why not consider a Smart Mailbox?
    I assume by your second question you mean can you change the columns in the message viewer? Yes you can. You select View -> Columns and check the ones you want. You can adjust the order of the columns by dragging the titles around in the message viewer.
    If you didn't mean this, maybe you could explain what you are after in a little more detail.

  • 648 max , testing base and extended memory

    I dont see the thread i answered to one time that someone spoke of using ddr400 with 648 max or max-L board and they were getting testing base and extended memory error from the LED's.  Well i just got the same error today and my system would not boot i cut the power to the PS. and turned it back on it would start to boot and hang i could barely get to the windows logo sometimes the vid card wouldnt even boot the logo to the screen. This is with an updated mobo that msi sent me that i had just put in , it seemed to run fine at first then this problem started occuring.  The only difference i had in the setup from the previous outdated board was i had the mem in DIMM 3 and not DIMM 1, so i moved the memory back over to DIMM 3 and now the problem is gone. Just something for those of you with the same problem to try.
    Oh and i forgot one more issue, i cannot set the dram speed in the bios manually i have ddr 333 it should be 167 mhz so i set it to 4/5  and the system will not boot at all  i end up having to reset cmos.  I called MSI about that and they told me to just have it set to SPD , I said i know that and im fine with leaving it that way but it should let me set it manually if i wanted to and that i wondered if that had anything to do with the random " testing base and extended memory " problem.

    It was probably myt thread...
    http://www.msi.com.tw/program/e_service/forum/viewindex.php?threadid=6204&boardid=10&styleid=1
    Have done some testing with both DDR333 and DDR400 and my results are in the thread.
    Right no I'm using my DDR400 as DDR333, manually set to 167MHz, using DIMM1, and havn't seen any problems. I'll try the DIMM3 to see if I get any changes.
    And by the way.. I tried setting my DDR400 manually to 200MHz and it wouldn't boot at all. After a lot of ugly language I finally got it back to the BIOS....after a reset of the CMOS.
    Seams like you should use SPD if you want to use the correct freq for your RAM.
    Have you tested the new 1.3 BIOS?

  • Classic and Extended classic scenario

    Hi All,
    Can we have classic scenario for Service procurement (MM-SRV) and Extended classic for direct material procurement in the same SRM system.
    This is because Extended classic doesnot support service procurment where as Classic scenario supports
    Does any body implemented like this. If so pls let me know Pros and cons
    Abdul Raheem

    Hi Laurent,
    Thanks for reply.
    Do we have any limitations if we go by this model like Service procurement by Classic and Direct procurement by Extended Classic.
    If any thing breif on PRos and Cons of going by this model.
    Abdul raheem

  • What's the keyboard shortcut for switching betwen video mirroring and extended desktop screens in a imac intel?

    I've a iMac with broken display that i can used by external monitor, but... this display shows only background image (no menus, no finder icons). How can turn the display options from System preferences without acces it?

    CMD F1   is the shortcut to toggle between Mirror and extended.
    Regards,
    Captfred

  • Adf bc jar for base entity classes and extending them existing  project

    Hi,
    I am using jdev 11.1.1.0 and have created a base workspace/project and adf jar for my base entity classes.
    1. I can consume this base adf bc jar in a separate new consuming workspace and create VO based on base bc classes or create new EOs that extend base bc entity classes.
    2. Furthermore, for an existing consuming project that earlier included src/ of base entity (BC components), i can remove the dependency on bc source and bring in this new adf jar and everything including the view controller and the service/datacontrol works fine.
    The issue i am running into is as follows.
    - In the existing project (#2) above i try to create a couple of entities based on entities in my base jar; associations are automatically brought in. Note i am not overriding any attributes. My intent here is to generate .java and implement some code.
    - I then try to make my existing VOs based on the newly extended entity (VO overview->Entity Objects-> Shuttle NewEntity from Available to Selected)
    - I then try to remove the old EO from selected under VO overview->Entity Objects->Shuttle OldEntity from Selected back
    - I get a warning dialog box that says something to the effect that some viewlinks are dependent on these old EOs in this consuming project.
    - I tried to laboriously analyzed dependencies and it this dialog box does not make any sense as I have already extended EOs and the tooling should be able to let me use these
    My questions
    - Why I am not able to remove old entities from VO dependencies
    - Is it ok to leave the old EOs in "Selected" along with the newly extended EO ? What are the implications for this?
    - I also thought about extending base associations, but did not go anywhere.
    In general, I am ok with consuming an ADF BC jar that has entities etc. but not clear about removing dependencies of base EOs on VOs when entities are extended and consumed in a pre-existing project that used base entities.
    I can send a project if any PM is willing to take a look at it.
    Thanks,
    ps:
    I have already gone over the following info
    http://technology.amis.nl/blog/215/organization-of-bc4j-domain-eo-and-business-vo-package
    .. wants to create an enterprise data model in BC4J, reflecting the Enterprise Data Model set up in the RDBMS. All (or at least most) business rules will be implemented in the Middle Tier – to take the load of the database and also allow developers not comfortable with PL/SQL to define and maintain the business rules. It is clear that this means that all applications that need to access – and manipulate – the database, need to go through the BC4J foundation layer. Martijn wants to define the Entity Objects – and their business rules – only once and share that definition between different projects. Each projects can create its own ViewObjects on top of these shared Enterprise Entity Objects.
    http://radio-weblogs.com/0118231/2005/09/29.html
    I am currently working on a project for a partner where we will be using ADF BC as our model layer for a large application. In order to keep the footprint of each application module down to a reasonable size, we are intending to create a number of separate 'root' application modules for each functional area of the application. Within, these 'root' application modules we will then use nested application modules to further partition the application. All of the application modules will be accessing the same datasource and will need access to the same database objects.
    In order to separate our code between the development team and into function areas, our initial thoughts were that we would create an ADF BC model project containing Entity Objects for all of the database tables e.t.c. as these are common amongst all functional areas. We have configured all of the EOs for validation rules, defaulting values and extending doDML() as appropriate. Happy at this stage we then created a simple .jar file to deploy all of the definitions. Upon creating a new ADF BC project for each functional area we added the jar file as a library import into the new project. However when we the tried to create some new View Objects via the JDev Wizard we were unable to see the imported Entity Objects.
    Is the only way to share Entity Object definitions between different ADF BC projects to manually copy the source definition files into the new projects src directory? Since this would mean multiple copies of the same components, it could prove to be a maintenance nightmare.Is there a way of doing it without creating multiple copies of the same object definitions?
    The developer is spot on in their ideas of layering and reuse, and even has created a library for their reusable entities. This last step is not something everyone thinks to do. The missing step is known as "importing" components, so with that one extra bit of knowledge under his belt, he should be able to do exactly what he envisions. My little article called Difference Between Adding and Importing Business Components tries to explain the difference and gives the menu options to choose to perform the importing.
    Difference between adding and importing BC4J
    http://radio-weblogs.com/0118231/stories/2005/08/11/differenceBetweenAddingAndImportingBusinessComponents.html
    Working with Libraries of Reusable Business Components
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcadvgen.htm#CHEFECGD

    Hi,
    since you followed the OC4J developer guide I think this question might be better handled there as well
    OC4J
    So in case you don't get an answer here on the forum, try it on the OC4J forum
    Frank

  • Mirror and Extended Desktop - Panasonic 42" 720 image cropped

    I have my 15.4 macbook pro connected to a Panasonic 42" 720 HDTV via the mini displayport. In both mirror and extended desktop mode, the Panasonic image is cropped off on all four sides. I fooled around with all the resolution settings and nothing changes.
    No matter what I do, the menu bar and dock get cropped off by a few pixels. How can I fix this?
    thanks

    Right, your TV is overscanning. That's very common. Overscan has been part of what TVs have done for decades.
    If your TV is meant to be compatible with computer output, there should be a way to set the screen size using the TV's remote and/or menu system so that computer output just fills the screen. So check you TV's user manual about making a connection to a PC for information about how to get rid of overscan on the TV.

  • Where can I download the Asian and Extended Langauge Font Packs as an add-on?

    I am trying to download the
    Asian and Extended Language Font Packs  located at the bottom of: http://www.adobe.com/products/reader/languages/
    It sent me to the page: http://www.adobe.com/downloads/updates/
    When I selected the Adobe Reader for Windows, I came to this page:
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    I clicked the add-on for: Asian and Extended Language Font Packs (including Chinese Simplified, Chinese Traditional, Korean and Japanese), which has the following property: http://www.adobe.com/products/acrobat/acrrasianfontpack.html
    It sent me to this page:  http://www.adobe.com/products/acrobat/
    Where can I download the Asian and Extended Langauge Font Packs as an add-on?  Thanks.
    p.s. I have installed with 9.3.3 version. I do not wish to upgrade to 9.3.4 until this has been resolved. Thanks.

    If the above doesn't work, this one should, but only in the 64 bit version of photoshop cs5.1
    http://helpx.adobe.com/photoshop/kb/psdx-files-dont-open-photoshop.html
    After you extract the plugin (AdobePSDXLoader.8BI) put it in
    C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Plug-ins\File Formats

  • Code Inspector and Extended program check in one program

    Hello SAP gurus,
    We have a requirement where we need to create one tool which will have both code inspector and extended program check functionality and report should display all error, warning messages which are found from these checks.
    Can anyone provide some suggestions on this?
    Thanks,
    Khushboo Dand

    Hi,
    Go  to Se38 and check how code inpsector and extended syntax check. I dont remember the exact function module name but just debug a little u will be able to find it.
    Nabheet

  • Difference between Classic Scenario and Extended Classic Scenario

    Hi Expers,
    I need your help again........:-)
    I just want to know what is the differne between classic and Extended Classic Scenario.
    Points will be rewarded
    Thank you
    sam

    Hi Sam,
    (explaination frm a previous thread)
    Difference between scenarios
    WIth classic scenario, the SC following document is to be created in your R/3 backend(s). Thus you can get an PO, a PR or a stock reservation in R/3.
    With extended classic the following document is to be found in SRM itself. Thus from a SC item you can get a complete PO, an incomplete PO or depending on your customizing a Sourcing cockpit (now called Sourcing Application) requirement. Additional FM are called when you tick the box "Enable Extended classic" in the IMG activity, enabling you to get a local PD.
    If you need to get a stock reservation in R/3 with extended classic, you will have to switch back to classic scenario for the particular category or product with a dedicated BADI ("Control extended classic ").
    Be aware that with extended classic, the PO created in R/3 is not exactly a replication. That is a "copy" with that crucial difference that the SRM PO will use a different Purchase Organization that of R/3. It enables you to centralize your purchasing. In SRM you can create a "local" Purch. Org for EMEA zone for instance while in R/3 that is rare you can purchasing above a country (because in the backend you have to produce legal documents related to one company). Those "local" (=SRM) Purch. Org. are required to enable extended classic and it makes simpler Contract management for instance (in classic scenario contracts may need to be replicated to your R/3 back end and adjusted for each back end and each Purch Org in R/3, and even for each plants).
    In a nutshell with extended classic you have a PO in SRM, and this PO is assigned to a different Purch Org that of R/3. Purch Org in R/3 are determined on the basis of the "LOcation" (R/3 plant you have replicated from your backent into SRM).
    Extended classic is required for service purchasing when you want your requesters to be able to adjust the PO price while they can not access R3. In extended classic, PO is issued from SRM and not from R3.
    Please check this too:
    http://help.sap.com/saphelp_srm40/helpdata/en/e9/d0fc3729b5db48e10000009b38f842/content.htm
    BR,
    Disha.

  • Classic Withholding Tax and Extended Withholding Tax

    Hi,
    What is the difference between Classic Withholding Tax and Extended Withholding Tax.
    Regards
    RKG.

    Hi
    Withholding tax is calculated and posted to the appropriate withholding tax accounts at different stages, depending on the legal requirements in each country. As a rule, withholding tax is posted at the same time that the payment is posted, in other words the outgoing payment (Accounts Payable) or incoming payment (Accounts Receivable), is reduced by the withholding tax amount. 
    In certain countries, such as Brazil, the Philippines, and Spain, withholding tax can or must be posted when the invoice is posted. This means that the amount receivable or payable is reduced by the withholding tax amount.
    Extended withholding tax supports both concepts. 
    The key concept in extended withholding tax is the distinction between withholding tax type and withholding tax code. While withholding tax types represent basic calculation rules, specific features of these rules - in particular the percentage rate -
    are represented by the withholding tax code. You can define any number of withholding tax codes for a given withholding tax type.
    If a particular transaction requires more than one kind of withholding tax, this is covered in the SAP System by defining more than one withholding tax type.
    When entering a line item, you can enter withholding tax data for each of these withholding tax types.
    How To Configure Withholding Tax?
    Steps for extended withholding tax :
    1. Check withholding tax countries
    2. Define Ex. Withholding tax types for invoice postings
    3. Define Ex. Withholding tax codes
    4. Formula for Ex. Withholding tax calculation
    5. Assign Ex. Withholding tax types to Company code
    6. Activate Ex. Withholding tax
    8. Create a G/L a/C for Ex. Withholding tax
    9. Define A/C for Ex. Withholding tax (DBWW)
    10. Make changes in Vendor master (XK02)
    11. Maintain Company Code Settings:
    Path: IMG -> Logistic -> General -> Taxes on goods movement -> India -> Maintain company code settings
    12. Activate country version for specific fiscal year position
    Path: IMG -> FA -> -> **** -> Taxes on sales purchases -> Basic Setting -> India -> Activate country specific for fiscal year position
    http://help.sap.com/saphelp_erp2005/helpdata/en/e5/0780914acd11d182b90000e829fbfe/content.htm
    nagesh

  • Classic and Extended Withholding tax

    Hi,
    Can anybody explain me what is the differance between classic and extended withholding tax.
    Rds,
    javed

    Hi
    Text from SAP documentation
    SAP provides you with two procedures for processing withholding tax:
    "Standard" and extended withholding tax.
    "Standard" withholding tax is the procedure that has always been supported by the system. It offers you the following features:
    Withholding tax for accounts payable
    Withholding tax calculation during payment
    Withholding tax code per vendor line item
    Extended withholding tax provides the following additional features:
    Multiple withholding taxes per customer or vendor line item
    Withholding tax calculation for partial payments
    Thank You,

Maybe you are looking for

  • Anyone know how I set up a new project at 1920x1080 59.94i fps ntsc when none of the presets match?

    I have just bought Adobe Premiere Elements 10 here in the UK for my laptop: Windows Vista, 32bit OS, 2GB Ram. I am editing a video I shot in NTSC format at 1920 x 1080, 59.94i frames per second (MPEG2 HD Long 35mbps), from a Sony XDCAM EX1 camcorder.

  • My Home Hub 3 seems to have randomly completely br...

    Tried everything I can. Must be a hardware malfunction. After hours on the phone to BT can't get it to work. Will BT send me another Bt Home Hub 3 for free or will i have to pay?

  • JNI call seem to be very slow

    Hello, I have an optimized JPEG decoder written in C++, I have a JNI bridge to that codebase with this method: Java-side: public static native byte[] readJPEG(String name);C++ side: JNIEXPORT const jbyteArray JNICALL Java_IPPJPEGDecoder_readJPEG(JNIE

  • VIEW_MAINTENANCE_CALL filter dates

    Hello, I'm using FM VIEW_MAINTENANCE_CALL, I have some filters that work ok, but I have a problem when I try to filter from a date field. Because even some records should be returned, the final search is empty. I fill the structure (for the table vim

  • XML document must have a top level element

    Hi all, I have deployed my web services in 904. When I try to see the generated wsdl, I am seeing: XML document must have a top level element. in IE. Does anyone know why? Thanks.