Non Keyboard character.
Hi all,
I web host a folder of files in the apache. There a file name which contains non keyboard character. I use URLENCODER, it been encoded to %E2%80%98. Sorry that i cannot passte the character here, as is a offline system.
Although is being encoded, is still returns a 404 when try to access the files. Anyone met this issue before?
By the way, what is the culture? Should i really allow all these non-keyboard character?
Regards,
becks
becks wrote:
URLencoder is java.Yeah I know.
Just wondering how other people do it as well? I feel that should not let users copy paste those funny character into the system.Well it's not a very good system if it doesn't support Unicode. It's not that big an effort after all. Of course if you're not familiar with character encoding and unicode, I recommend you read this:
http://www.joelonsoftware.com/articles/Unicode.html
Similar Messages
-
RTF non keyboard character missing
When I export the RTF from the application file non-keyboard character (symbol and mathematical pi fonts) converted in to square boxes.
How to fix this issue.
Please advice.becks wrote:
URLencoder is java.Yeah I know.
Just wondering how other people do it as well? I feel that should not let users copy paste those funny character into the system.Well it's not a very good system if it doesn't support Unicode. It's not that big an effort after all. Of course if you're not familiar with character encoding and unicode, I recommend you read this:
http://www.joelonsoftware.com/articles/Unicode.html -
Storing a Non Printable -from keyboard- Character in Varchar2 Column
Hi,
I want to store a non-printable character in a varchar2 column. This character should be non-printable -from keyboard- for all character sets -or very difficult to print from keyboard-. It doesn't matter, whether it can be displayed on screen or not. It does matter INSTR function returns the character position of that character. It should be able to import export data without any problem for any NLS specific operating environment. For example, I plan to use chr(1) do you think it's appropriate? I appreciate your helps.
Best Regards,
SalimWhat is the business requirement you're trying to satisfy?
If your database character set is based on ASCII, CHR(1) (the Start of Header) character is likely to be transferred between systems without character set conversion. Non-ASCII character sets (i.e. Big5 for Chinese data) don't necessarily share the same control characters, though, and generally won't have the same binary representation of an ASCII control character (so CHR(1) in a non-ASCII based database wouldn't necessarily return the same character that CHR(1) would in an ASCII based database).
Justin -
[Solved] no non-ASCII character input in rxvt-unicode
Hello everyone,
For some days now, I can't write any non-ASCII characters any more in rxvt-unicode and rxvt-unicode-patched. Unfortunately, downgrading the rxvt-unicode package doesn't seem to help. To have at least a temporary solution, I'd like to know at least which packages I could try to downgrade as well. Any ideas, anyone?
greez,
maxmin
Last edited by Maximalminimalist (2011-03-12 13:12:26)When I try to type a non-ASCII-character I get nothing at all. This happens with my custom keyboard layout (modified programmer dvorak) and in some layouts I already tried (us: altgr-intl, ch, de and fr)
When I paste a non-ASCII characters in rxvt-unicode I get
maxmin ~ $ ?
This happens only on my x86_64 desktop which is more up to date than my i686 laptop. (I'm afraid now to do any updates.)
EDIT: I'm sorry, I don't know what you mean with locale settings. What do you mean with that?
EDIT2: Maybe just typing locale in the terminal is what you mean:
maxmin ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
With other terminal emulators I get sometimes also nothing and sometimes right displayed but wrong interpreted character in vim. I didn't take notes while doing that but I'll try again if needed.
Last edited by Maximalminimalist (2011-03-06 21:51:23) -
Reading a non-english character
Hi, I have a trouble with reading a non-english character from a html page.
I'm taking the word from the html page, and compare it with itself,
like this
string.equals("BİTTİ")
but it returns false.
is it possible to correct this?specify an encoding for your inputstream reader:
BufferedReader in = new BufferedReader(
new InputStreamReader(new FileInputStream("infilename"), "8859_1")); for example -
I'm trying to pull data from an Oracle database using SSIS. When I try to select a few fields from the source table, it returns the following error message:
[OLE DB Source [47]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E14 Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
The source columns are a combination of numeric and texts, and I've also tried selecting one of them, which didn't work. I'm using the Oracle client 11.2.0.1, and it works fine with any other data sources I have connected to so far. How can I resolve this
error?Hi H.James,
According to your description, the issue is a non-numeric character was found where a numeric was expected while pulling data from an Oracle database in SSIS.
Based on the error message, the issue should be you are comparing a number column to a non-number column in a query. Such as the query below (ConfID is a number, Sdate is a date):
where C.ConfID in (select C.Sdate
from Conference_C C
where C.Sdate < '1-July-12')
Besides, a default behavior for the Oracle OleDb Provider that change the NLS Date Format of the session to 'YYYY-MM-DD HH24:MI:SS can also cause the issue. For more details about this issue, please refer to the following blog:
http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
This is my error:
javax.servlet.ServletException: ORA-01858: a non-numeric character was found where a numeric was expected
This is my code:
ResultSet myRs = myStmt.executeQuery("select count(*) dexCount from cs_dexia where userid = '" + vUserid + "'");
int vCount = 0;
while(myRs.next()){
vCount = myRs.getInt("dexCount");
out.println(vCount);
if(vCount > 0)
response.sendRedirect("swapform.jsp");
What have I done wrong?I have changed that and am now getting:
javax.servlet.ServletException: ORA-00904: invalid column name
the query runs in my sql tool no problem, could it be something to do with the alias? -
ORA-01858: a non-numeric character was found where a numeric was expected
hi ,
This was the code which shows the sales rep invoice amount and collected amount but while running report thru concurrent program its showing the following error:
ORA-01858: a non-numeric character was found where a numeric was expected
WHERE TO_CHAR ( TO_DATE ( PS.GL_DATE , 'DD/MON/YY' ) , 'MON-YYYY' ) BETWEEN TO_CHAR ( TO_DATE ( : ==> P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND TO_CHAR ( TO_DATE ( : P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND ps.customer_id = cust.custome
The Actual Code was this
SELECT SUBSTR(SALES.name,1,50) salesrep_name_inv,
--ps.CLASS,
SUM(ABS(ps.acctd_amount_due_remaining)) acctd_amt,
SUM(ABS(ps.amount_due_remaining)) amt_due_remaining_inv,
SUM(ABS(ps.amount_adjusted)) amount_adjusted_inv,
SUM(ABS(ps.amount_applied)) amount_applied_inv,
SUM(ABS(ps.amount_credited)) amount_credited_inv,
SALES.salesrep_id,
NULL "REMARKS"
-- ps.gl_date gl_date_inv,
FROM ra_cust_trx_types ctt,
ra_customers cust,
ar_payment_schedules ps,
ra_salesreps SALES,
ra_site_uses site,
ra_addresses addr,
ra_cust_trx_line_gl_dist gld,
gl_code_combinations c,
ra_customer_trx ct
WHERE TO_CHAR(TO_DATE(PS.GL_DATE,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
AND ps.customer_id = cust.customer_id
AND ps.customer_trx_id = ct.customer_trx_id
AND ps.cust_trx_type_id = ctt.cust_trx_type_id
AND NVL(ct.primary_salesrep_id, -3) = SALES.salesrep_id
AND ps.customer_site_use_id+0 = site.site_use_id(+)
AND site.address_id = addr.address_id(+)
AND TO_CHAR(TO_DATE(PS.GL_DATE_CLOSED,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
--AND ps.gl_date_closed > TO_DATE(:P_todate,'MON-YYYY')
AND ct.customer_trx_id = gld.customer_trx_id
AND gld.account_class = 'REC'
AND gld.latest_rec_flag = 'Y'
AND gld.code_combination_id = c.code_combination_id
AND sales.salesrep_id is not null and sales.name is not null
-- and ps.payment_schedule_id+0 < 9999
-- AND SALES.salesrep_id ='1001'
GROUP BY SALES.name,
--ps.CLASS,
SALES.salesrep_idSo to_date function accepts a string as input and returns a date. When a date is input instead, it is implicity converted to the required type of the function paremeter, which is a string, so that to_date can convert it back to a date again.
If you are lucky with the implicit conversion, you get the same date back, if you are not you might get a different date or an error.
From your query it appears that this conversion from a date, to a string, to a date, and then back to a string using to_char this time, is being done to remove the time or day part of the date. The actual range comparison is being done on strings rather than dates, which is dangerous as strings sort differently than dates.
In this example if I sort by date, Jan 01 comes between Dec 00 and Feb 01 as you would expect.
SQL> select * from t order by d;
D
12-01-2000
01-01-2001
02-01-2001When converted to strings, Feb 01 comes between Dec 00 and Jan 01, which is probably not the desired result
SQL> select * from t order by to_char(d,'DD-MON-YY');
D
12-01-2000
02-01-2001
01-01-2001If you want to remove time and day parts of dates you should use the trunc function
trunc(d) removes the time, trunc(d,'mm') will remove the days to start of month.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761 -
Non-ASCII character in Email field
Hi Guys,
I am trying to enter non-english characters in Email field of user form, but OIM throws an error that "A non-Ascii character has been entered". I have also tried to turn off the AppFirewall Filter in xlConfig.xml file but no help. Is there any way thay I can enter non-Ascii characters in Email field?
Regards,
Rahul.oO(surfinIan)
>I have a script that converts a ms word document to text
then uploads that to a
>blob field on a mysql db.
> During the conversion some characters my not be
recognised. When i then call
>up the blob for display on the browser...those characters
show up as unknown
>characters with a ? or box. Is there a way to
preg_replace those unknown
>characters before displaying them.
What about fixing the encoding problem instead? If chars get
lost during
such a transfer
document->script->database->script->browser it's always
an encoding problem somewhere down the road.
The recommendation these days is to use UTF-8, which avoids
most of
these old problems. You just have to make sure that your
documents are
properly stored as UTF-8 in the database and delivered as
such to the
script and the browser, then you don't have to worry about
special chars
anymore.
That's just the general idea. I can't be more specific, since
I don't
know your conversion script or the database structure.
Micha -
Getting a request in a non English character
Hi ,
In an attempt to solve a problem of getting a request in a non English character , i use the code , taken from O'Reilly's "Java Servlet programing" First edition:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class MyServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
try {
//set encoding of request and responce
req.setCharacterEncoding("Cp1255"); //for hebrew windows
res.setCharacterEncoding("Cp1255");
res.setContentType("Text/html; Cp1255");
String value = req.getParameter("param");
// Now convert it from an array of bytes to an array of characters.
// Here we bother to read only the first line.
BufferedReader reader = new BufferedReader(
new InputStreamReader(new StringBufferInputStream(value), "Cp1255"));
String valueInUnicode = reader.readLine();
}catch (Exception e) {
e.printStackTrace();
this works fine , the only problem is that StringBufferInputStream is deprecated .
is there any other alternative for that ?
Thanks in advance
YairHi Again ..
To get to the root of things , here is a servlet test and an http client test which demonstrates using the above patch and not using it :
The servlet :
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringBufferInputStream;
public class Hebrew2test extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
request.setCharacterEncoding("Cp1255");
response.setCharacterEncoding("Cp1255");
response.setContentType("Text/html; Cp1255");
PrintWriter out = response.getWriter();
String name = request.getParameter("name");
//print without any patch
out.println(name);
//a try with patch 1 DEPRECATED
out.println("patch 1:");
BufferedReader reader =
new BufferedReader(new InputStreamReader(new StringBufferInputStream(name), "cp1255"));
String patch_name = reader.readLine();
out.println(patch_name);
//a try with patch 2 which doesn't work
out.println("patch 2:");
String valueInUnicode = new String(name.getBytes("Cp1255"), "UTF8");
out.println(valueInUnicode);
and now for a test client :
import java.io.*;
import java.net.*;
public class HttpClient_cp1255 {
private static void printUsage() {
System.out.println("usage: java HttpClient host port");
public static void main(String[] args) {
if (args.length < 2) {
printUsage();
return;
// Host is the first parameter, port is the second
String host = args[0];
int port;
try {
port = Integer.parseInt(args[1]);
catch (NumberFormatException e) {
printUsage();
return;
try {
// Open a socket to the server
Socket s = new Socket(host, port);
// Start a thread to send reuest to the server
new Request_(s).start();
// Now print everything we receive from the socket
BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream(),"cp1255"));
String line;
File f = new File("in.txt");
FileWriter out = new FileWriter(f);
while ((line = in.readLine()) != null) {
System.out.println(line);
out.write(line);
out.close();
catch (Exception e) {
e.printStackTrace();
class Request_ extends Thread {
Socket s;
public Request_( Socket s) {
this.s = s;
setPriority(MIN_PRIORITY); // socket reads should have a higher priority
// Wish I could use a select() !
setDaemon(true); // let the app die even when this thread is running
public void run() {
try {
OutputStreamWriter server = new OutputStreamWriter(s.getOutputStream(),"cp1255");
//String query= "GET /userprofiles/hebrew2test?name=yair"; //yair in Englisg ..
String query= "GET /userprofiles/hebrew2test?name=\u05d9\u05d0\u05d9\u05e8"; //yair in hebrew - in unicode
System.out.println("Connected... your HTTP request is sent");
System.out.println("------------------------------------------");
server.write(query);
server.write("\r\n"); // HTTP lines end with \r\n
server.flush();
System.out.println(server.getEncoding());
server = new OutputStreamWriter(new FileOutputStream("out.txt"),"cp1255");
server.write(query);
server.flush();
catch (Exception e) {
e.printStackTrace(); -
How to validate for non-english character on a single line text field
In a "Single Line Text" field we would like to allow the users to enter alpha numeric values only. We should show error when the user enter non-English values like
carácter
Vijayaragavan, MCTSHi,
According to your post, my understanding is that you wanted to validate for non-english character on a single line text field.
I recommend to use jQuery to attach regular expression validation. Please refer to:
Using #jQuery to attach regular expression validation to a #SharePoint list form field
In addition, for custom validations you can create your own Types. Refer to
this[^] for creating custom field type
More information:
SharePoint Custom Field - Regex Validator
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Does querybuilder support non-english character?
I want to make query using querybuilder with non-english character (Chinese)?
I tried with http://localhost:4502/libs/cq/search/content/querydebug.html but it is not working.
below is my query string:
property=contenttext
property.value=你好嗎
I have converted the chinese character (你好嗎)to unicode.
Can anyone help me?That's a bug in the debugger UI. But it's easy to fix:
in crxde lite, overlay /libs/cq/search/components/querydebug/querydebug.jsp by copying it to /apps/cq/search/components/querydebug/querydebug.jsp
open /apps/cq/search/components/querydebug/querydebug.jsp
find the line "props.load(new ByteArrayInputStream(queryParam.getBytes("ISO-8859-1")));"
and replace with "props.load(new StringReader(queryParam));"
Will be fixed in 5.6.1. -
Error when import file with non-english character
Hi,<br /><br />I have images file with non-english character (unicode), for example ABC<X>.png where <X> is non-english character such as japanese, chinese, etc.<br /><br />Whenever I want to import the file to After Effects (right click -> import -> file), I always encounter error:<br /><br />Finding file/dir info for the file "C:\...\ABC?.png" -- file not found (-43) (3::30)<br />Can't import file "ABC?.png": unsupported filetype or extension. (0::1)<br /><br />My PC is Windows XP Professional 2002 SP2 English.<br /><br />How to solve this problem?<br /><br />Thanks
Adjust your system language settings. Proper file name conventions require a consistent Unicode environment, so install the respective foreign language support files or switch the language system-wide. Mixing different zones/ code ranges is always a bad idea. If your system is not in Japanese, AE will always misinterpret the characters and refuse to import. If that's not feasible, simply rename the files.
Mylenium -
Read in a single keyboard character
Could someone help me with the following?
Read in a single keyboard character and display an appropriate message depending on whether it was a letter, a digit or some other type of character. Use a nested else-if statement.
I would appreciate it, thanks.objJTextField.addKeyListener(new KeyboardEvent());
class KeyboardEvent extends KeyAdapter{
public void keyPressed(KeyEvent objKeyEvent){
if (objKeyEvent.getKeyCode()!=KeyEvent.VK_BACK_SPACE)){
System.out.println("You make a click on Back Space");
} -
Non-Latin Character Display On Web Page
In a Java web application, only one non-Latin character display issue is that when they are typied into a JSP file. Otherwise, non-Latin characters display correctly from the message property file or from database.
Anyone know how to solve it?
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Solved!
Just need to have the JSP page tag on the related JSP file.
nullWelcome to our community, Denise
Perhaps check the names of all the files involved? What type
of web server are you using?
You say that your co-worker said she is linking to the skin
file from a .htm page, but what is missing here is whether she is
using the .HTM page you provided in the mix or if it's one she
created herself. If it's one she created herself, that may be the
issue.
Cheers... Rick
Maybe you are looking for
-
New installation of iTunes on Windows 7 64 bit hangs
I just installed iTunes 9.0.3 (64 bit version) on my Windows 7 (64 bit version as well) PC (Core i7). The installation seemed to work fine. But from the first start of iTunes, it has very slow response times and I can't do anything like browsing musi
-
Win 8.1 iTunes 11.1.3.8 iPhone 5 IOS 7.04
Ok, I have not been able to sync with iTunes since 7.01. I don't know if this is an Iphone issue or Itunes issue. I click sync, get to the last step and I get stuck on waiting for changes to be applied. What are the changes, I don't know. I h
-
I have an old ipod. It worked great until about 2 months ago and now it says I need to restore my ipod but I can't unless I format it, but everytime I try, it says the format could not be completed. Is there anything else I can do to get it to work a
-
I placed an order two weeks ago that shipped right away via UPS Surepost, where the "Sure" stands for "Sure to never arrive". UPS, as usual, performed their portion of the shipment correctly (or so I assume) as their website shows the package was ha
-
Hi Eveyone...I installed Adobe Flash CS5.5 a couple of days back...Trying to learn a few basic tricks such as motion tween (messed up things with the bone tool though)..Well the problem is, a friend of mine made a 3D drawing in Solid Works(a modellin