Encoded characters in URL request string not decoded correctly
When I make a GET request with the British Pound Symbol in one of the paramters, that parameter is either not there if the pound (%A3) sign is first, or truncated in my servlet. For Example:
ValidateAmount.jsp?quantity=2&chargeAmount=%A312.2&chargeUnitType=R
chargeAmount=null in above example
ValidateAmount.jsp?quantity=2&chargeAmount=123-%A312.2&chargeUnitType=R
chargeAmount=123- in the above example.
When I look at the query string in the servlet, everything looks as it should, but I can't get the request parameters correctly.
I have tried setting the Character Encoding to "UTF-8" in several places to no avail. I am using Weblogic 7.0 SP2 on a Windows 2000 machine. I am using Internet Explorer 6. How do I fix this?
I cannot reproduce this using a test form I created: https://files.acrobat.com/a/preview/e6b390e1-625c-4f59-86c5-c2ca07998279
Does the same thing happen with the form above? If not, can you share your form with us: http://forums.adobe.com/thread/1408375
Similar Messages
-
Special characters such as è and À are not displayed correctly on my iphone but are no problem in my Outlook.
Emails are sent from a blackberry Z10
ThanksSpecial characters such as è and À are not displayed correctly on my iphone but are no problem in my Outlook.
Emails are sent from a blackberry Z10
Thanks -
Hi,
I have found information through research about the URL structure for 'passing information between pages' using the p?f=110:100:etc etc.
We currently employ Apex to provide an insurance quotation engine for a third party and rely on a link on their pages to direct customers to our application.
My question is...
Is it possible to include (in a similar manner to say php) request variables - the client requires a 'customer friendly URL' i.e. www.myinsurance.com/apex/travel.insurance as opposed to www.myinsurance/apex/p?f=100:1:::::::::::::::::
I assume it is not possible to link to an Apex app using www.myinsurance.com/apex/travel.insurance?referrer=STAFFMEMBER
Please could you explain if it is possible to pass values in a 'customer friendly' URL to an apex application and if so how (or if not prepared to tell me, point me in the right direction of some reference material).
Regards
JohnHi John,
the Apache module mod_rewrite is the way to go. They can use the URL format they want to have and as soon this URL request goes to your Apache, it will be "translated" to the format APEX requires.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/ -
Replace encoded characters in URL
Hi gurus,
I have the following requirement and I don't know how to solve it in the best way.
I have a Z transaction for uploading a local file. This file contains URL's and after upload, there are stored in SAP.
I need to check this URL and replace encoded characters with corresponding codes, for example: space -> %20
How can I do this? I've been looking for a solution, but I haven't found anything usefull yet.
Any ideas?
Thanks a lot!Have a look at class CL_HTTP_UTILITY. There are some methods which looks promising.
The method ESCAPE_URL is waht you needed.
pass UNESCAPED = 'http://forums.sdn.sap.com/edit!default.jspa?messageID=11060123'
output = HTTP%3a%2f%2fFORUMS%2eSDN%2eSAP%2eCOM%2fEDIT%21DEFAULT%2eJSPA%3fMESSAGEID%3d11060123
& for vice versa use UNESCAPE_URL
Edited by: Keshav.T on Feb 7, 2012 2:23 PM -
I have a PDF form served from a web application and shown in Internet Explorer and want to put in string values with norwegian letter like 'ÅRE ØRE ÆRE'.
These are not shwon correctly when I toggle "Highlight Existing Fields" and the focus is not on the text field in question.
I am runing on Windows 7.I cannot reproduce this using a test form I created: https://files.acrobat.com/a/preview/e6b390e1-625c-4f59-86c5-c2ca07998279
Does the same thing happen with the form above? If not, can you share your form with us: http://forums.adobe.com/thread/1408375 -
Number to fractional string not working correctly
I am measuring some parameters from oscillsocpe. i need to write these values to text file for which i am using write to spreadsheet, but what is happening is it is always writing zero value to file, on debugging i found that while converting from number to string it is always writng zero to string indicator, then separately i used that number to fractional string indicator and it is always showing zero in string output , i dont why it is happening.
Attached below is the code.
Solved!
Go to Solution.
Attachments:
Time meas sub.vi 31 KBRanjeet Singh and Norbert_B
Thanks for ther reply
Ranjeet singh,
number to fractional string is working correctly, there is some other problem, because inly when i am executing this code converting this rise time value to string then only it is showing zero, otherwise for any random number if i am checking this number to fractional string is working correctly.
Norbert_B
i dont need to convert it back to string that i am doing only to check why it is showing zero value on converting number to string , because when i was writing to spreadsheet file it was always writing zero value, so when checked that code it was observed that while converting from array of numbers to spreadsheet string it is always writing zero value that's why i am doing it here just to check why it is not converting to string, but your suggestion helped in focussing the string that i am gettong from VISA read, i can use that in last case if i wont be able to find the solution but main problem is that why i am not able to convert it back to string, why it is showing zero because it is because of this only write to spreadsheet is always showing zero value . -
AS3 URL Request file not found
Hi
I just learned last night from Ned Murphy how to code a btn in AS3.
Trouble is, when testing the Dreamweaver frameset website, site name: URLRequest on the C drive with my default browser F12, I get a problem loading the page / file not found.
Here is the btn AS3 code.
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
function btn1Click(evt:MouseEvent):void {
var url:String = "C:\WebSites\FrameSets\URLRequest\mainFrame1.html";
var req:URLRequest = new URLRequest(url);
navigateToURL(req);
Just for comparison here is the AS3 btn code Ned copy pasted to my Thread last night.
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
function btn1Click(evt:MouseEvent):void {
var url:String = "http://www.awebsite.com/awebpage.html";
var req:URLRequest = new URLRequest(url);
navigateToURL(req);
What is it that is stopping my browser from directing to "C:\WebSites\FrameSets\URLRequest\mainFrame1.html";
Is it the var url:String?
Thanks for reading
Sabby76Re Kglad Thank you
I copy pasted the URL into a browser and it junked to: file:///C:/WebSites/FrameSets/URLRequest,mainFrame1.html I don't know what is the correct name for file:/// probably just the O.S directories proxy? Using the file:/// in the btns function out-works perfectly. Now the rest of the websites frame set extensions directories will not pull up after the index for example: file:///C:/WebSites/FrameSets/URLRequest/index.html/mainFrame2.html I think a re-thread in the DW forum will be the next step, any clues?
Cheers
Sabby76 -
Request parameters not decoded in UTF-8 format
Hi All,
I've a spring mvc application hosted in tomcat.But when I make a get request to this application giving japanese characters as parameters , the servlet decodes it in ISO-8859-1 fomat, due to which a search functionality is failing.
Is there any way to specify the servlet for decoding the request parameters in UTF-8 format?
I Tried adding the URIEncoding="UTF-8" attribute in Connector tag in server.xml of the tomcat server where my application is hosted, but still -ve results.
Any help?This link may help you:
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding
The change you made is indeed documented:
http://tomcat.apache.org/tomcat-7.0-doc/config/http.html
so if that doesn't work, you'll have to direct your question to a Tomcat forum. -
Request.getServerPort() not returning correct port
Hi,
I am using Oracle AS 10.1.2.0.2.
In my jsp request.getServerPort() returns me the webcache(HTTP Listen) port number, but it supposed to return me the port of my OC4J(defined in http-website.xml).
Could guys advice what need to change.Hi Joni,
Is there a severe i18n bug in the servlet / jsp framework?Not a bug, but a limitation in the 2.2 java servlet classes. Up to Ver. 2.2, there was no way to tell the servlet what decoding to apply to the stream of bytes coming from the web page. Therefore, request.getParameter("toAdd") would always use its default platform encoding, typically something like Cp1252. So, suppose your web page sends bytes corresponding to a string containing the single Chinese character for tea in UTF8 encoding:
"\u8336" => 0xe8, 0x8c, 0xb6
which getParameter would decode into the three character string: "\u00e8\u008c\u00b6"
request.getParameter("toAdd").getBytes(); then returns an array of the original three bytes, and
new String(request.getParameter("toAdd").getBytes(),"UTF8"); then returns the original string "\u8336"
The good news is that in Ver. 2.3 of the java servlet classes all that nonsense above is unnecessary. The ServletRequest interface has a new method setCharacterEncoding(java.lang.String env), so all you have to do is insert
request.setCharacterEncoding ("UTF8"); before you call request.getParameter("toAdd") and your input byte stream will be correctly decoded. Works great.
Regards,
Joe -
Request.getParameter() not working correctly for Check Boxes!
Hi,
I am writing my own custom form action in cq5.4 and I need to access the fields of my form. I have a checkbox component on my form named 'cbox' and now I want to access it.
So this is the code I'm writing in the JSP
String name = request.getParameter("cbox");
But when I fill up the data on the form and submit it.. I only get the first element of the checkbox which I had selected. So suppose if the checkbox was having some options..
a
b
c
d
and if I selected b and d then I only get 'b'.
Actually the type of the name variable must be String Array. But when I do..
String[] name = request.getParameter("cbox");
//it gives me compilation error saying cannot convert from String to String[]
I cannot understand whats happening here. Can someone help me? How do I find out that which options has the user checked?
Thanks!I think you are looking for getParameterValues().
If you read http://docs.oracle.com/javaee/1.3/api/javax/servlet/ServletRequest.html#getParameter(java. lang.String) and http://docs.oracle.com/javaee/1.3/api/javax/servlet/ServletRequest.html#getParameterValues (java.lang.String), you'll see the behavior you are seeing is as-documented. -
POJO Longer strings not displayed correctly, only displayce boxes.
I'm using JRC version:
Crystal Report Viewer 11.8.4.1197
java.vendor = Sun Microsystems Inc.
java.version = 1.5.0_16
os.name = Windows XP
os.version = 5.1
os.arch = x86
I'm using "import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;" to open a report.
I searched in net and tried the following soln; but still Im not getting all the characters. Please help me to solve this.
POJOResultSetHelper pojoHelper = new POJOResultSetHelper(
P4UReportInformation.class);
pojoHelper.setMemberColumnDisplaySize("getCustomerWelcomeDetail",
1024);
pojoHelper.setMemberColumnDisplaySize(
"getCustomerDisclaimerDetail", 1024);
java.sql.ResultSet rs = pojoHelper
.createResultSet(consolidationSheetRequest
.getSelectedReportInformation());
report.getDatabaseController().setDataSource(rs, tableAlias,
tableAlias);
// // Set run time data source to the report
// report.getDatabaseController().setDataSource(
// consolidationSheetRequest.getSelectedReportInformation(),
// P4UReportInformation.class, tableAlias, tableAlias);POJOResultSetHelper pojoHelper = new POJOResultSetHelper(
P4UReportInformation.class);
pojoHelper.setMemberColumnDisplaySize("CustomerWelcomeDetail",
1024);
pojoHelper.setMemberColumnDisplaySize(
"CustomerDisclaimerDetail", 1024);
Removed "get" from setMemberColumnDisplaySize("CustomerWelcomeDetail"..
This solved my issue. -
Order BY String, not ordering correct alphabetical
Hey,
I have the following query.
SELECT TBLREQUESTTYPES.ID, TYPE_NAME, SCHEDULED, CASE WHEN SCHEDULED = 1 THEN 'No' ELSE 'Yes' END AS SCHEDULEDTEXT, DAYS, CASE WHEN SCHEDULED = 1 THEN DAYS ELSE NULL END AS NUMDAYS, CASE WHEN SCHEDULED = 1 THEN 'Unscheduled' ELSE TBLFREQUENCIES.NAME END AS FREQUENCY, TBLFREQUENCIES.NAME FROM TBLREQUESTTYPES LEFT JOIN TBLFREQUENCIES ON TBLREQUESTTYPES.FREQUENCYID = TBLFREQUENCIES.ID WHERE TBLREQUESTTYPES.STATUS_ID = 1
ORDER BY TYPE_NAME DESC
But the list is for example is if there is 20 records
first 10 are correct a-z but then next 10 are a-z again instead of all 20 being listed correctly a-z.
If i do for example order by id it works fine.121 wekk 2 week 0 (null) Weekly
21 vcfgd 0 (null) Daily
201 test jf 0 (null) Monthly
105 test aa 0 (null) Monthly
301 test 0 (null) Weekly
321 spurs 0 (null) Daily
221 jf test 0 (null) Weekly
55 fddfffddf2 0 (null) Weekly
54 fddfffddf 0 (null) Weekly
43 fddf 0 (null) Daily
53 ewweewew 0 (null) Monthly
57 ewewwe2 0 (null) Weekly
52 ewewwe 0 (null) Weekly
81 carlos 0 (null) Daily
122 asdasd 0 (null) Weekly
123 aasdas 0 (null) Weekly
182 Year test 1 0 (null) Yearly
102 Weekly Job 0 (null) Weekly
42 Steven Test2 0 (null) Daily
41 Steven Test 0 (null) Daily
341 Steven Non-Scheduled 1 20 Unscheduled
161 Steven Daily 0 (null) Daily
125 PRZEMEK_TEST 0 (null) Weekly
241 PRZEMEKTEST 0 (null) Weekly
104 Mont Job 2 0 (null) Yearly
103 Mont Job 1 0 (null) Monthly
222 John test 0 (null) Weekly
261 John Farrell 0 (null) Daily
322 JFtets 0 (null) Daily
323 JF testing JF 0 (null) Daily
281 JF NEW TEST JOB 0 (null) Daily
124 For P 0 (null) Weekly
184 Every friday 0 (null) Weekly
181 Daily job 0 (null) Daily
141 Check Fire Alarms 0 (null) Weekly
183 10 daily job 0 (null) Daily -
[SOLVED] Problems opening folders with UTF-8 encoded characters
Hello everyone, I'm having an issue when I acess folders in all my programs ( except Dolphin File Manager). Every time I open the folder navigation window in my programs, folders with UTF-8 encoded characters ( such as "ç", "á ", "ó", "í", etc ) are not shown or the folder name not show these characters, therefore, I can not open documents inside these folders.
However, as you saw, I can type these characters normally. Here's my "locale.conf" :
LANG="en_US.UTF-8:ISO-8859-1"
LC_TIME="pt_BR.UTF-8:ISO-8859-1"
And here's the output of the command "locale -a" :
C
en_US.utf8
POSIX
Last edited by regmoraes (2015-04-17 12:55:19)Thing is, when I run locale -a, I get
$ locale -a
C
de_DE@euro
de_DE.iso885915@euro
de_DE.utf8
en_US
en_US.iso88591
en_US.utf8
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
POSIX
So an entry for every locale I have uncommented in my locale.conf. Just making sure, by "following the steps in the beginner's guide", you also mean running locale-gen?
Are those folders on a linux filesystem like ext4 or on a windows (ntfs?) -
Accented characters do not display correctly if there is a variable beside it
Hello,
We are experiencing a problem when we have text with accented characters an a variable beside it within the same text box.
The problem is that the accented characters in the text do not display correctly in the preview or publised course to Flash9
These characters display correctly in Captivate in edit mode.
This is the process we have followed:
Export to XML
Translated
Import XML
Publish to Flash9
Captivate version: 4
OS: Windows Vista SP2
We have tried to work with locale in Spanish with no luck, the only solution we have found is to put the text and the variable in different text boxes
I have pasted an image of the preview and also of the text in Captivate edit mode.
Any help will be very welcomed !
TessHi there
I agree with Lilybiri that you should definitely file a Bug Report.
However, a thought occurs here. Have you tried placing the accented text in a User Defined variable?
Assuming this is a workaround, my thought is that you could then just have a caption with two variables. The User Defined variable containing the accented text followed immediately by the system variable providing the Project Name.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Link URL containing feed: is not displayed correctly in the status bar
When a link contains feed: in the URL, it is not displayed correctly in the status bar.
The actual URL is
a href="feed:http://www.....com/feed/"
but the URL shown in the status bar is
feed://http//www.....com/feed/
IE8 shows the correct URL in the status bar. Not sure if this is a problem, but thought I would report it.Such a feed works for me even if it is displayed differently then you expect on the status bar.
<pre><nowiki>data:text/html,<a href="feed:https://support.mozilla.com/en-US/questions/758020/feed">feed</a></nowiki></pre>
Maybe you are looking for
-
Dynamically copy a PDF form to a specific repository via a button
Hi, Sorry in advance if this is a dumb issue for which there is an obvious solution, but since I'm not a developer I couldn't tell and my searches around the web haven't allowed me to solve this out. As the web designer here, I've been asked to creat
-
hello gurus, I got output of a report as bellow. sl no date name state contry 1 10.10.2009 mtm 1 10.10.2009 A1 1 10.10.2009
-
My Imac wasn't read DVD but not in VCD and CD
Hi everybody, I bought an Imac 24" 2.8GHZ one month ago, serial is : YM845*ZE4. The first time I used , no problem with superdrive , can read smoothly DVD also with VCD and CD. but 2 days ago , i did a mistake , i deleted 2 files in HD name is : mach
-
Authorization check to users in Report
Hi frds, FI- Posting document created smart form My customer is asking Document values greater than RS : 250000/- restrict to view some users .......... How to acheive this requirement...........
-
Hi All , I want to add a new variable on screen 4003 In program SAPMV45A . This is Account Assignment tab at Item level of sales order . Is there any screen-exit at this screen ?? Any other solution ..... Any pointer to this will be helpful .. Regar