Allow only English characters in ESS
Hi All,
We have a requirement to allow only english characters in ESS input , what should be the correct way to achieve this.
Do we need to do this by implementing the Enhancement - HRPAD00INFTYUI Method INPUT_CONVERSION.
Thanks
Amol
Hi Amol
How many languages you are currently Implementing??? If In case u have multiple country's available do u want country specific Input languages??? SAP delivers English in std's & it allows other languages which you have Installed in the system to store the data. As mentioned earlier you can place a Validation under INPUT_CONVERSION method to restrict accordingly.
Try this & let us know the possible outcomes. It would be more appreciable if you can paste some screen shots.
Cheers
Pradyp
Similar Messages
-
Allowing only specific characters in input
Hello,
My projects were auditted for security and it was found a
logged in user (only) could hack my programs because I was not
being careful to keep certain characters from being input, not just
pointy brackets and pound signs. I am now told to do no client side
checking.
I am thinking to define an allowable character list to
checking each input box character by character.
What is a faster and more efficient way than looping through
each input value's characters 1 by 1 and using find() and to check
if those characters are in the list of good characters?
Thanks.If you feel you can make use of it, this might be a place to
start:
[^-_,\.@a-zA-Z0-9\s]
I use this reg exp as part of a parameter to an refindnocase
function inside a little udf I wrote to scrub user input. It's not
the entire expression, and I don't feel comfortable simply posting
the whole udf (not trying to be mysterious, but it's part of our
online security, after all, and is the property of my employer).
I think your approach of defining allowable characters,
instead of trying to define non-allowable ones, makes a great deal
of sense and is the approach that seems to be widely recommended.
That's what I use the expression above to do...if the character
ain't in that set, it gets deleted from the input string. It can
extract a price even from an innocent string, though...note that if
a user inputs "O'Brien" it'll come through as "OBrien" which for my
purposes is no more than a minor inconvenience. YMMV.
If that code makes no sense, spend an hour reading up on Reg
Expressions and you'll get it.
Bob's advice to become familiar with cfqueryparam is, of
course, excellent. -
Prevent Non-English Characters on JSP forms
I was hoping to get any programming tips/ideas to prevent users from entering non-english text on web-forms.
Any feedback would be greatly appreciated. Thanks.I have a jsp page something like:
<tr>
<td colspan=2> </td>
<td colspan=2>
<textarea name="title" cols="<%=cols%>" rows="3" wrap><%= form.getTitle()%></textarea>
</td>
</tr>
When the user submits the page, I do the form validation in the java formhandler. I was hoping that I could somehow compare the ascii codes of the character to ensure user is entering only english characters.
The following is the code, I have written in java the form-handler
for (int i =0 ; i < title.length() ; i++) {
char c = title.charAt(i);
System.out.println("c = " + c + ", ascii = " +(int)'c');
if (int(c) > 127) {
setErrorMessage(ID.QUESTION.TITLE, "Non-English characters are not allowed. Please enter the required information only in Enlgish.");
But for some reason which I am not able to debug, is that no matter what character I enter english or non-english its ascii equivalent i.e. the int(c) value getting printed out is always 99. Moreover even if I enter a non-english character, in the system.out it is printing its english equivalent...if that makes any sense...
I hope I was able to explain my problem...Any help/feedback would be greatly appreciated.
Thanks. -
XML Dataset - Sorting non english characters
I've been playing with spry on a production site for more
than a year now. It's turned out to be a great solution in many
situations in spite of being a beta release.
I've found an issue concerning the sorting of text data (in
this case, coming from an XML file). You can find the example page
here:
http://mi.esan.edu.pe/elecciones/2008/electores/.
It's in Spanish but i guess you won't need a translation to
understand what's going on; besides you can always check the source
code if so you wish.
Works fine, though I still have some polishing to do. The
most important part of which is fixing the sort order that spry
gives me by default.
If you click on the "go to last page link" (»), located
below the table/dataset area, you will see that after letter Z come
the words, in this case last names, starting with letter A, but
with a tilde on them. I've devised a workaround, but that requires
creating an extra column with everything converted to only English
characters. My list is already 4000 records long and takes a few
seconds to load. It's definitely going to get much longer in the
years to come and I wish I will be able to give my users the
ability to sort by any column they wish. So, I can't just be adding
columns and duplicating data all around.
Is there a way to tell spry that Á should be sorted as
if it was A (not after A, not before it, and definitely not at the
end of the list), that Ñ should come right after N, and so on?
I will very much appreciate your answer.
Regards,
JoseThank you very much for your reply, Kin.
Sad thing that there wasn't a solution, though.
But, then I guess you must be aware that spry is being used
and will be used by a huge ammount of non English speaking clients
of Adobe. Namely those of us that have Spanish, French, German,
Japanese, Chinese or any other as their primary language. And all
of us would greatly appreciate a not so English-centered solution,
for such a commonplace feature as sorting is.
Given this situation, what chances do you think there are
that Adobe will be developping the necessary language specific
plugins for spry's sorting capabilities? And, how soon would that
be?
In the meantime, I will start trying to do it myself. It
would be fantastic if you coukd give me any hints on how to start,
javascript is not my strongest point but I think I can crack it out
and have a little fun while I'm at it, too.
Regards,
Jose -
Non-english characters input problem on remote device
Hello.
I have ZCM 11 SP1. In remote management I can input on remote device only English characters.
When I change keyboard layuot to Russian - no input at all. But I need Russian keyboard working. Help, please.
Management device is Windows XP SP3 box, admin device - Windows 7 SP1 and Windows XP SP3 boxes9113060,
> I have ZCM 11 SP1. In remote management I can input on remote device
> only English characters.
> When I change keyboard layuot to Russian - no input at all. But I need
> Russian keyboard working. Help, please.
>
> Management device is Windows XP SP3 box, admin device - Windows 7 SP1
> and Windows XP SP3 boxes
Need more info here. I just tested it on Swedish and it works just fine,
but when you say "When I change keyboard layuot to Russian" does that
mean that the default on your machine or the target machine is not
Russian?
- Anders Gustafsson (NKP)
The Aaland Islands (N60 E20)
Novell has a new enhancement request system,
or what is now known as the requirement portal.
If customers would like to give input in the upcoming
releases of Novell products then they should go to
http://www.novell.com/rms -
Non-English characters problem
I am using Flash 8. I am trying to create foreign language
versions of my flash program, and have been using Embed on the
properties area with limited success. For example, I am trying to
display Greek characters using Static text and Arial font. There is
no embed option for this. However, when I run the swf, the correct
characters appear for some of the texts and some are just blank.
Very confusing, particularly as I have checked and they have the
same properties.
Also, I am trying to display text using actionscript, through
a dynamic text field that I can Embed the greek characters. Again,
I am experiencing a similar problem. I've even tried to use the
special char codes for the letters, and that doesn't make much
difference.
Does anyone have any ideas about what I could be missing
here? It is getting infuriating.
Thanks!!!!9113060,
> I have ZCM 11 SP1. In remote management I can input on remote device
> only English characters.
> When I change keyboard layuot to Russian - no input at all. But I need
> Russian keyboard working. Help, please.
>
> Management device is Windows XP SP3 box, admin device - Windows 7 SP1
> and Windows XP SP3 boxes
Need more info here. I just tested it on Swedish and it works just fine,
but when you say "When I change keyboard layuot to Russian" does that
mean that the default on your machine or the target machine is not
Russian?
- Anders Gustafsson (NKP)
The Aaland Islands (N60 E20)
Novell has a new enhancement request system,
or what is now known as the requirement portal.
If customers would like to give input in the upcoming
releases of Novell products then they should go to
http://www.novell.com/rms -
When ever I select this option firefox only shows characters that appear when you do not have foreign fonts installed, except for English. The characters are squares with numbers in them at the bottom of the character.
Try to set the Boolean pref <b>gfx.font_rendering.directwrite.use_gdi_table_loading</b> to <i>false</i> on the <b>about:config</b> page.
*http://kb.mozillazine.org/about:config -
Only VBA does not recognize non-English characters
Hello guys,
I have a new laptop with Windows 8.1 bought in the USA and I'm having a difficulties with Excel VBA (Office 365 University-64x bought in the Czech Republic - Central Europe). The VBA does not recognize non-English characters (particularly "ř" and
"ů") which causes me problem when running some codes that I wrote earlier on my previous laptop (Windows 7, bought in the Czech Republic with the same Office).
The problem with non-English characters has occurred only in VBA so far, otherwise I can use these characters normally in Excel cells, Word... I tried to install both English and Czech version of the Office with no change, I also installed Czech proofreading
tools and set everything to Czech in the Office. The location and language preferences in the Windows are also set up to Czech. And it is not a problem of a font. I also mentioned that when I tried to look up these characters, using Ctrl+F, it changes
original ř to r after a search and again this is only an issue of the VBA.
Thank you very much for any help.
TomHi Tom,
VBA for Excel can only recognize ASCII code from 0 to 255, if you use other special characters like "ř" or "ů", it will returns 63(?) to you. To use this kind of characters, you have to utilize ChrW function to parse a decemal to the
character.
http://msdn.microsoft.com/en-us/library/ee177465.aspx
for example, the hex code and dec code for these two characters are as below:
Hex Dec
ř 159 345
ů 016F 367
So to get these two characters in VBA, you could code as below:
ChrW(&H159) or ChrW(345)
ChrW(&H16F) or ChrW(367)
You can get the hex code of the character by searching in the system character map(in the Win8.1 start view, search "character map"), then convert the hex code to decimal code by yourself.
Range("A1").Value = ChrW(&H159) & ChrW(&H16F)
Range("A1").Value = ChrW(345) & ChrW(367)
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages. If I type it won't continue in Hebrew. I have tried downloading several fonts, including those from professional societies, but the only way to get Hebrew in my document is to cut and paste. Does anyone know how to fix this? I use an older MacBook running OS 10.9.1. I used to do my Hebrew work in Word, but it is no longer supported by Mac OS.
Just clarifying:
Pages '09 has bad support for Hebrew, Arabic etc but will accept pasted text.
Pages 5 has much better support but with bugs.
If you have columns they are in the wrong order ie Text starts in the left column and ends in the right column.
If you type English into Hebrew text it tends to fall in the wrong position eg instead of to the left of Hebrew punctuation it goes to the right.
As Tom recommends the only real solution on the Mac is Mellel.
Peter
btw Tell Apple, they are amazingly slow to fix this running sore which has been broken since RtoL was supposedly introduced in OSX 10.2.3 over a decade ago.
Peter -
Newly purchased Gujarati font doesn't show Hindi characters, only English.
I bought Gujarati and Devangari. Devangari works great in my InDesign CS6; Gujarati shows copy in English characters, not Hindi. I am using a Macintosh. The top part of the image is the Devangari type.
Disregard. The text I import has to be in unicode in order for Gujarati to work.
-
Restrict non-English characters
Hello,
I have a page that has 2 regions: one for English fields, one for Arabic fields. I’d like to restrict the fields in the Arabic region from accepting English characters and the fields in the English region to restrict Arabic characters. Does anyone have some suggestions, or direct me to a previous thread on information on how to do this?
Thanks!Hi,
There are several ways to validate entries in a field. You can do this using javascript either after each keystroke (the onKeyDown, onKeyPress and onKeyUp events can be used) or when the user exits the field (using onChange or onBlur events).
However, the simplest solution may be to use the normal Page Validation process - use the "Item in Expression 1 contains only the characters in Expression 2" validation type. Enter the field name in Expression 1 and all of the allowable characters in Expression 2.
You could also create a SQL function to test the values. And there are probably other methods as well.
Andy -
Can username, password have unicode(non english) characters
Does Oracle allow a username, password to have non english characters.
I found the answer to my own question. In essence it looks like the answer is Yes for UserName and a little confusing for the Password. Password has to be in Single byte characterset, not clear whether 7 bit or 8 bit. 8 bit from my understanding is Ascii + some Western European characters.
Following is from Oracle 10G Database SQL reference
user
Specify the name of the user to be created. This name can contain only characters from your database character set and must follow the rules described in the section "Schema Object Naming Rules". Oracle recommends that the user name contain at least one single-byte character regardless of whether the database character set also contains multibyte characters.
Note:
Oracle recommends that user names and passwords be encoded in ASCII or EBCDIC characters only, depending on your platform.
BY password
The BY password clause lets you creates a local user and indicates that the user must specify password to log on to the database. Passwords can contain only single-byte characters from your database character set regardless of whether the character set also contains multibyte characters.
Passwords must follow the rules described in the section "Schema Object Naming Rules", unless you are using the Oracle Database password complexity verification routine. That routine requires a more complex combination of characters than the normal naming rules permit. -
Non english characters in DN cannot be retrieved
We are using Netscape directory server 4, protocal V3. We have a problem related to non-english characters appearing in RDN.
We publish to Ldap entries using the values from database. For example, we have pubulished an entry to Ldap, based on DB values, the entry should have a DN like: ou=Liege BELGIUM ... LGG1a, <other components of DN>. However, when we call netscape search API (search against uid attribute which does not have non-english characters), the search return the entry, but when further call getDN() method on the returned Ldap Entry, it only returns Li, instead of the complete DN value.
It seems the entry is corrupted in Ldap. I wanted to delete the corrupted entry and re create new one to test. I tried many ways, but none of them worked, I think it is because DN is corrupted, there is no key value to identify the Ldap entry for any operation(modify, delete).
You help and insights are much appreciated.
Thanks.
Han ShenLDAP uses the UTF8 encoding. You must store data in the directory using the UTF8 encoding. This includes DN values. This also means that if you want to be able to view the values in your native character set and font, you must use an application that can convert the UTF8 LDAP data back to the native character encoding. The directory console by default should work for LATIN-1 (ISO 8859) languages if the LOCALE is set correctly.
-
How to retrieve non-english characters from a query
Hello,
My apologies if this post is not in its proper place, but I was a bit confused where to add it.
I'm running a query using SQL Developer on a table which contains several companies names from many different countries, and one of the checks I need to make to ensure data consistency is to search for all rows which the name of company contains special or non-english characters (like ç, ã, ä as example).
I don't know what can I use to do this. I tried to collate using NLS_SORT but it didn't work.
Is there someway to select only the rows that contain these special or non-english characters, excluding from the results the rows that only have english characters? Please have in mind that we have many languages in this table.
The field I would like to make the conditions on is VARCHAR2.
Please let me know if there is any extra information I should provide you so that you can help me.
Thank you in advance for the help.
Regards,
LuísHi Luis,
My apologies if this post is not in its proper place, but I was a bit confused where to add it.This is the Forum for the SQL Developer Data Modeler product.
I suggest you try using the SQL and PL/SQL Forum: PL/SQL
David -
Encoding non english characters with utf 8 on jsp (Critical!!)
I am inserting hebrew characters from JSP into oracle db and everything is fine until this point. But when I try to retrieve the information from the database, the characters are not displayed properly (I get some garbage characters). I am sure that the data stored in the database is correct, but not sure why there is a problem in displaying the data in the JSP.
I came across a thread on TSS
http://www.theserverside.com/discussions/thread.tss?thread_id=28944
and followed the suggestions given there like having
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">and also this
<%
//Some JDBC and sql statement query UTF-8 data and then ...
String str = rs.getString("utf8_data");
str = new String(str.getBytes("ISO-8859-1"),"UTF-8");
%>
<%= str %>Now, the data getting displayed is partly correct, I mean to say, some characters are still coming as squares.
Any ideas will be of great help.even i doubt the database charset for this issue. But what I dont understand is how only certain hebrew characters are getting stored properly and why others are corrupted?
Also, can anyone let me know how i can view the Non-English characters present in the database directly, as TOAD is not able to display them
Maybe you are looking for
-
I keep getting this message: AN ERROR OCURRED WHILE LOADING THIS CONTENT ATV was working fine until i did a version update last week. Since then i have rented two movies and keep getting the same message I restarted the ATV - no success I reset my wi
-
Video output settings same as iMovie?
Hi Everyone, I've made my first real FCE movie - but when I output it using File, Export, Using Quicktime conversion, Size = PAL 720x576 16:9, I get a file size about 10 times bigger than the equivalent file I'd get from iMovie. It looks great - just
-
Auto collapse SVG tags (or other tags) to clean up HTML structure
I am usong SVG for icons and logos in the my HTML. I know Dreamweaver CC allow collapsing of code sections highlited, but I would like to be able to set a setting to auto collapse certain tags to help make the HTML more readable. Is there and option/
-
Just I'd like to know the structure of pdf file. I have searched google but found nothing thus far. Anyone canoffer me some hints on this please ? Thanks nice helpers :-)
-
Why can I not select SD versions of SD programs I purchased?
Why can I not select SD versions of SD TV programs I purchased? When I go to my program to download it. I click the SD button, that is what I paid for. It will not move over to the SD version to allow me to download it even though I have received not