Does URL with japanese request parameters work ?

Environment:
Weblogic 4.5 with sp6
Windows NT 4.0
Browser IE 5.0
I'm trying to pass japanese characters as part of the url to jsp. The URL
link works fine if the link is in html file. But if I ccreate the link using
JSP file it does not work.
details:
I have a .html file containing link
the parameter value for parametr 'test' is japanese
http://localhost:7001/Test.jsp?test=ffftfHf<fg ffftfHf<fg
In Test.jsp, i use
<%@ page contentType="text/html; charset=shift_jis" %>
and get parameter value for "test" using
String str = new String( newParam.getBytes("8859_1"), "shift_jis");
<%=str%> looks very perfect (i.e. japanese);
using 'str' I create link
"http://localhost:7001/Test.jsp?test=" + str;
which is exactly same as the above.
Now when i click on the link, the Test.jsp gets executed again
But this time,
<%=str%> results in garbled characters.
Can anybody please help me with this ?
reque

Query parameters that are not in the 7-bit ASCII range or are reserved
should be URL escaped. You can do this with multibyte characters by
assuming each escape sequence in a query string is a byte instead of a
character. The one trick is having a way of determining what the byte
encoding was. If you know that it shouldn't be too hard. I'm not sure
how WebLogic in particular will deal with this using the getParameter
methods. The next servlet spec has a method for setting the encoding.
I do all the encoding and decoding processing myself.
Sachin Desai wrote:
>
Environment:
Weblogic 4.5 with sp6
Windows NT 4.0
Browser IE 5.0
I'm trying to pass japanese characters as part of the url to jsp. The URL
link works fine if the link is in html file. But if I ccreate the link using
JSP file it does not work.
details:
I have a .html file containing link
the parameter value for parametr 'test' is japanese
http://localhost:7001/Test.jsp?test=ffftfHf<fg ffftfHf<fg
In Test.jsp, i use
<%@ page contentType="text/html; charset=shift_jis" %>
and get parameter value for "test" using
String str = new String( newParam.getBytes("8859_1"), "shift_jis");
<%=str%> looks very perfect (i.e. japanese);
using 'str' I create link
"http://localhost:7001/Test.jsp?test=" + str;
which is exactly same as the above.
Now when i click on the link, the Test.jsp gets executed again
But this time,
<%=str%> results in garbled characters.
Can anybody please help me with this ?
reque

Similar Messages

  • CreateAuthenticatedSessionToken: The signature of the request does not match the request parameters

    I'm creating an app using the SODA Architecture. 
    I could successfully create an app and make the client to authorize it. 
    Result of newApplicationCreationInfo:
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <status>
    <code>0</code>
    </status>
    <wc:info xmlns:wc="urn:com.microsoft.wc.methods.response.NewApplicationCreationInfo">
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <shared-secret>gBksYDAqcuAUXK+zyvfFW9F0sy8nchwnplJ6K7aKmAM=</shared-secret>
    <app-token>AiAAANDl....A5b9fxVIlXEloouci6jGhY/A==</app-token>
    </wc:info>
    </response>
    I'm using the app-token to build the redirect url, and I get to authorize the new app. 
    then, using the new child app id and the shared-secret I built the 
    CreateAuthenticatedSessionToken:
    <?xml version="1.0" encoding="UTF-8"?>
    <wc-request:request xmlns:wc-request="urn:com.microsoft.wc.request">
    <header>
    <method>CreateAuthenticatedSessionToken</method>
    <method-version>2</method-version>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <language>en</language>
    <country>US</country>
    <msg-time>2013-01-01T00:00:00Z</msg-time>
    <msg-ttl>1800</msg-ttl>
    <version>2.0.0.0</version>
    </header>
    <info>
    <auth-info>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <credential>
    <appserver2>
    <hmacSig algName="HMACSHA256">PcW4f9krD1O43O4JGBGEkqDlpatFIUUQY9JejHji0XA=</hmacSig>
    <content>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <hmac>HMACSHA256</hmac>
    <signing-time>2013-12-17T14:19:58.623Z</signing-time>
    </content>
    </appserver2>
    </credential>
    </auth-info>
    </info>
    </wc-request:request>
    Being hmacSig value the encryption of "<content>....</content>" using shared-secret value as private key:
    hmacSig = Encodingutil.base64Encode(Crypto.generateMac('hmacSHA256', Blob.valueOf(body), Blob.valueOf(sharedSecret)))
    this returns an error code 11: The signature of the request does not match the request parameters.
    I'm using the following endpoint: https://platform.healthvault-ppe.com/platform/wildcat.ashx
    Also the redirection url I received after authorizing the app contains the following: 
    https://<MY_URL>/?gws_rd=cr&ei=h5ewUuKLJa7IsASc4YHIAw I'm not using this parameters, if that helps.
    Any hint will be greatly appreciated.
    UPDATE: I already checked the HMAC encoding using a third party service and it returned the same as my app

    I figured this out (God bless Pair Programming):
    I was signing incorrectly: 
    On the newApplicationCreationInfo:
    My Shared Secret is : gBksYDAqcuAUXK+zyvfFW9F0sy8nchwnplJ6K7aKmAM=
    But BEFORE hashing the "<content>...</content>" i need to decode my secret that is:
    hmacsig = calculateHMAC256(content, sharedSecret.decodeBase64())
     

  • Portal does not retain HTTP request parameters

    We are trying to do some basic pagination functionality using JSP tags. The problem that we are having is the JSP tag places request parameters in the URL that it creates. The tag then expects that these parameters will be available in the request when the page is rendered after the link is clicked. This JSP tag works great with normal pageflows but with the Portals concept of nested pageflows this no longer works.
    The problem is that these request parameters are not available in the request but only in the scoped request. How can the JSP tag in the JSP page get these parameters out of the request object?
    I can see the parameters in the ScopedRequest but not in the normal request. This is a major issue since the JSP tag has no knowledge (nor should it have to) of the concept of a Scoped request. The pageflow can access the parameters in the scoped request but there is no way to set parameters in a request.
    Is there a patch that places the parameters in the real request? Is there a work around for this?
    Thanks,
    Chris

    A couple options -
    1. Try using the OuterRequest
    2. You can prefix the portletinstance to the request parameters to get them from the main request object
    3. Try using the BEA grid for pagination OOTB.
    Hope this helps :)
    Kunal

  • IWeb 08 makes crappy URL with æ,ø,å that doesn't work in most browser!!!

    I live in Denmark and used iWeb 06 extensively with the danish characters æ, ø and å to name my subpages. iWeb 06 didn't care about those characters as it simply transformed them in the URL to characters/numbers that work in all browsers. iWeb 08 doesn't, so I get URLs like www.mydomain.dk/gæstebog which isn't supported by my webhotel nor the majority of browsers. This is a real annoying bug that I hope will be fixed soon.
    Message was edited by: Tournesol

    I get URLs like www.mydomain.dk/gæstebog which isn't supported by my webhotel
    Since it works with .Mac, I wonder if there is some fix you could do in your server space....
    I don't know exactly what problem you were having, but here is an example of one that can apparently be fixed:
    http://yettocome.blogspot.com/2007/07/utf-8accented-characters-and-406-not.html

  • Button URL With Variables widget that works with HTML5

    Hello,
    I'm currently using the "Button URL With Variables widget 6.x" developed by CaptivateDev. com. Unfortunatley it is not compatible with HTML5 projects in Captivate 7. Do you know where I can find one?
    Thanks,
    Stewart

    I don't know yet about any widget available for HTML5 output, with the exception of the interactions included with Captivate.

  • How does texting with a non iPhone work on the mcbp with the new software?

    With OS X Yosemite and if you have an iPhone that is using iOS 8 your are suppose to be able to send and receive SMS text messages right from the mac. This is suppose to be working regardless of what phone they are using ... has anybody figured out how to make that work?

    It will work on iOS 8.1
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity

  • Generated SOAP request parameters wrong?

    hello everybody,
    when you generate a WSDL out of the integration directory.
    Do you SOAP request parameters work correct or do you have to modify them.
    We have to modify them and have to insert strings like >&amp<
    Do we anything wrong?
    Regards Mario

    Hi,
    I had to modify the order of tags (when used with webdynpro)
    but I don't remember the SP, path...
    but never  >&<
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • URL is not displayed in Work flow task of CRM UI and displayed in SOST/SWIA Tcode

    Hi All,
    I am trying to display the dynamic URL with short link in work flow task, the same got properly displayed in SOST/swia Tcode but not displayed in CRM UI under work list of user, may I know how to solve it?
    code in work flow task under description is below :
    /*   <A HREF= www.google.com>Portal UWL</A>
    Thanks,
    VijHyd

    Hi
    You need to check with your CRM UI Consultant if HTML Tags are read and rendered.
    Screens in SOST are rendered using HTML and hence you can see the links. You may face the same issue if you send to outlook and if outlook settings do not support HTML.... whereas it may work on Yahoo or Gmail as the web page will render using HTML.
    So, check with your UI colleagues as to how HTML tags can be displayed correctly.
    Regards
    Modak

  • URL is not displayed in Work flow task of CRM UI and displayed in SOST Tcode

    Hi All,
    I am trying to display the dynamic URL with short link in work flow task, the same got properly displayed in SOST Tcode and mail but not displayed in CRM UI, may I know the reason behind it?
    code in work flow task under description is below :
    /*   <A HREF= "&URL&">Portal UWL</A>
    Thanks,
    VijHyd

    Hi Vij,
    You can use the below sample code to make a hyperlink for text,
    lv_url type string.
    lv_url = 'you can give url here'
    <thtmlb:link
                      id        = "test"
                     reference = " <%= lv_url %> "
                     tooltip   = "Download template file"
                     text      = "Please click on this link to download the Excel XML template" />

  • Problem in working with Japanese data

    Hello,
    We have an application, which should work for both English and Japanese languages. Our application is working fine for English data but in case of Japanese, we are facing problems. In the application, there is a language setting, where the user can select either English or Japanese. This changes the language of the labels to English or Japanese. We are handling this thru' ResourceBundles. But the data that is entered can be independent of this. In English setting also, the data entered or diplayed could be Japanese. Now we are facing problems at vaious places -
    1. When we enter Japanese data and save it, it gets copied into the bean and if there is any error in the saving, the same data from bean comes back on the screen. This data doesn't appear properly in Japanese.
    2. When we try to retrieve the already saved data from database, it doesn't show poperly in Japanese.
    We are using our own 'toUnicode' function, which converts the data to Unicode before saving the data to database. Similarly, we have tried different encodings like SJIS / Shift_JIS / ISO-2022-JP at various places i.e. in 'Page' directive or in HTML Meta tag or various combinations of these two. Nothing is working reliably. Sometimes for some combination, data retained in the first case is correct but it can't be saved. Sometimes it works with Unicode, sometimes without Unicode. Some combination affects the Japanese labels as well. Otherwise the labels at least are displayed properly.
    The same code with just Shift_JIS setting in 'page' directive, worked well in IIS Server for both English and Japanese.
    What could be the problem in WebLogic? Does it matter if WL is installed on English or Japanese machine?
    Kindly answer ASAP, since the project is getting delayed.
    Thanking in anticipation...
    -Medha

    Hi,
    is there a difference in handling Japanese and Chinese chars? If not I
    might be able to give you some hints.
    Daniel
    -----Original Message-----
    From: JSB [mailto:[email protected]]
    Posted At: Monday, February 12, 2001 6:22 PM
    Posted To: internationalization
    Conversation: Problem in working with Japanese data
    Subject: Re: Problem in working with Japanese data
    Have u solved this yet, and how ?
    Medha <[email protected]> wrote in message
    news:[email protected]...
    >
    Hello,
    We have an application, which should work for both English andJapanese
    languages. Our application is working fine for English data but in case
    of
    Japanese, we are facing problems. In the application, there is a
    language
    setting, where the user can select either English or Japanese. This
    changes
    the language of the labels to English or Japanese. We are handling this
    thru' ResourceBundles. But the data that is entered can be independent
    of
    this. In English setting also, the data entered or diplayed could be
    Japanese. Now we are facing problems at vaious places -
    1. When we enter Japanese data and save it, it gets copied into thebean
    and if there is any error in the saving, the same data from bean comes
    back
    on the screen. This data doesn't appear properly in Japanese.
    2. When we try to retrieve the already saved data from database, itdoesn't show poperly in Japanese.
    We are using our own 'toUnicode' function, which converts the datato
    Unicode before saving the data to database. Similarly, we have tried
    different encodings like SJIS / Shift_JIS / ISO-2022-JP at various
    places
    i.e. in 'Page' directive or in HTML Meta tag or various combinations of
    these two. Nothing is working reliably. Sometimes for some combination,
    data
    retained in the first case is correct but it can't be saved. Sometimes
    it
    works with Unicode, sometimes without Unicode. Some combination affects
    the
    Japanese labels as well. Otherwise the labels at least are displayed
    properly.
    The same code with just Shift_JIS setting in 'page' directive,worked
    well in IIS Server for both English and Japanese.
    What could be the problem in WebLogic? Does it matter if WL isinstalled on English or Japanese machine?
    Kindly answer ASAP, since the project is getting delayed.
    Thanking in anticipation...
    -Medha

  • Why Does Live View In DW Not Work With BC Template?

    The live view using a BC template in DW CS6 shows "PAGE NOT FOUND" in the body section but the header and footer look fine. I should also point out that the index.htm page works fine, it's just the other pages that have this problem. What makes it weirder is that the site works fine in all other modes including when viewing in a normal browser, it's ONLY when in live view! I also noticed that if I delete the .htm extension in the url in the DW browser when in Live View it fixes the problem, but this requires me to do this everytime I want to switch to live view and surely is either a problem with how the BC template files are named or DW CS6 is buggy? Hopefully this is an easy one to answer??

    Hi Alex,
    Thanks for your reply, I have done a video demo at http://screencast.com/t/RsutrvoFn0xZ
    Date: Thu, 14 Feb 2013 05:49:55 -0800
    From: [email protected]
    To: [email protected]
    Subject: Why Does Live View In DW Not Work With BC Template?
        Re: Why Does Live View In DW Not Work With BC Template?
        created by Alex Pavelescu in Dreamweaver & Business Catalyst - View the full discussion
    Hi, Please provide the site url, and if you can, a video demo of the issue you're facing, using http://www.techsmith.com/jing.html, where you could also display the way you have your side setup ( Dreamweaver menu > Site > Site manager > http://screencast.com/t/GqqBk9MY4ck ) Kind Regards,Alex
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5072585#5072585
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5072585#5072585
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5072585#5072585. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver & Business Catalyst by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • After formatting iPod to NTFS and restoring back with iTunes, the player works for two-three weeks and crashes afterward. It then requests to restore it through iTunes.

    After reformatting iPod to NTFS and restoring back with iTunes, the player works for two-three weeks and crashes afterward. It then requests to restore it through iTunes. When connected to iTunes, it sees it in the restore mode and also asks to restore the iPod. It happens over and over for the last months. What could be the problem?
    iPod Classic 80Gig.
    Thanks in advance.

    Dear planb77
    Thanks for a reply. iPod does not support ntfs - you're right. that means it will never work on that. While restoring ipod using iTunes, itunes reformats it no matter what filesystem is there. So the issue is not that. ipod is now on fat32 and it works for a certain period of time, but then crashes and asks to restore through itunes. Resetting/restarting does not help.

  • Please help me in resolving the URL with parameters.

    Hello,
    Please help me in resolving the URL with parameters. If desformat is pdf, a pop up message �Acrobat Reader could not open �pa034922.fdf� because it is either not a supported file type or because the file has been corrupted���.
    if desformat is html or xml, the following URL is working.
    our requirement, report should be in pdf format.
    http://servername:7778/dev60cgi/rwcgi60?server=Rep60_mclaren&&userid=bizsystest/test@business&destype=cache&desformat=pdf&report=salary_dept.rdf&p_dept_list=''ABE','ASE','CE','CHE','CS','DE','DIAL','ECE','ERC','IE','ME','PTE','ARC','ASE1''&p_status_list=''ACP','AD','AP','ATP','D','FE','HD','INS','P','RP','S','TF','TP','TS','ST','GS','O''&p_sex=''M','F''&p_order_by='Name'&p_totals='NO'
    Thanks in advance,
    Usha

    We've seen this bug on machines running IE6 with a certain security patch (I forget its number). There's a thread in the Metalink reports forum about it. It appears to be somewhat tied to another problem where IE runs the report twice (you can see that in Showjobs. You're seeing the problem in 6i; I believe it persists in 9i.
    The workarounds are (1) set Acrobat so it doesn't open within IE or (2) switch to a different browser, like Netscape. For workaround 1, Start Acrobat Reader, Choose File -> Preferences -> General, Uncheck Web Browser Integration
    There's some evidence that it occurs more often with urls that include single quote characters. I think it's worse with XP, but I don't have any proof.
    If you check Adobe's site, you will see this isn't just an Oracle Reports problem. I think we're waiting for Microsoft on this one, so don't hold your breath for a quick fix.
    -- jim

  • Lauching URLS with parameters Form Personalization

    Hello,
    At Crawley Borough Council we wish to use FP to launch urls with parameters; this would really enhance how CRM is used at Crawley BC. There values are taken from the contact centre customer block e.g. CUSTOMER_HEADER_BLK.CUST_FNAME would could be translated to the value of FRED.
    I can launch URLs without parameters ok, as soon as I add parameters I either get a url that does not translate the parameters or get an ORA error on vaildation.
    Can somebody please advise me the correct way to proceed.
    URL where parameters not translated when launched.
    http://cbcstlintraa/stellent/idcplg?&IdcService=GET_FILE&dDocName=CRMResultsForm&RevisionSelectionMethod=Latest&Rendition=Web&QueryText=(dDocType%20<Substring>%20'FormPublished'%20<or>%20dDocType%20<Substring>%20'ScannedDocs')%20<and>%20(xCRMName%20<Substring>%20' ||: CUSTOMER_HEADER_BLK.CUST_FNAME || '<or>%20xCRMPartyID%20<Substring>%20' ||:CUSTOMER_HEADER_BLK.CUST_PARTY_ID||') '
    URL that fails validation
    ='http://cbcstldeva/stellent_test/groups/internal/documents/callform.jsp&customer=CSAMEN&firstname='||CUSTOMER_HEADER_BLK.CUST_FNAME||'&lastname='||CUSTOMER_HEADER_BLK.CUST_LNAME||'&address_1='||CUSTOMER_HEADER_BLK.CUST_ADDRESS1||'&address_2='||CUSTOMER_HEADER_BLK.CUST_ADDRESS2||'&citytown='||CUSTOMER_HEADER_BLK.CUST_CITY||'&county='||CUSTOMER_HEADER_BLK.CUST_STATE||'&postcode='||CUSTOMER_HEADER_BLK.CUST_POSTAL_CODE||'&serviceid='||INCIDENT_TRACKING.INCIDENT_NUMBER||'

    Hi there,
    Try using this syntax for the variable: ${item.customer_header_blk.cust_fname}
    E.g.: ='http://www.google.fr/search?q='||${item.customer_header_blk.cust_fname}
    for a Google search based on your customer first name...

  • We had migrated our servers from a domain to cloud. all the web applications working fine locally, but from outside they are accessible but on editing giving 404 with some request id.

    hi all,
    recently we migrated our moss 2007 from a domain to cloud env. everything goes well and all the application working fine locally.
    but when users are trying from outside first they get promt for basic auth, that is enabled, its fine. then servers serve first page smoothly. all the application browsing is fine. but when authorized users are trying to edit a web page and they click on
    anything(save, submit for publication, publish) they get 404 with a request ID. another thing if they add a new page to app and then make any changes to that page then they are not getting any issue.
    please help if any one resolved that kind of issue.
    thanks in advance.
    SJ

    Hi Sumanpreet,
    Thanks for posting your issue, Kindly check out below mentioned URLs to get the fix for this issue
    http://www.sharepointdiary.com/2011/02/404-page-not-found-error-sharepoint-2010-migration.html#ixzz2jHyVIFcX
    http://vasya10.wordpress.com/category/sharepoint-2010/sharepoint-2007-to-2010-migration/
    https://social.technet.microsoft.com/Forums/en-US/d80e7495-e889-4209-9a0a-82a852c944b1/after-migration-from-moss-2007-to-sharepoint-2010-i-tried-to-check-the-site-with-site-url-getting?forum=sharepointadmin
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

Maybe you are looking for

  • How Can I use Type II PC Cards (cardbus) On My Macbook Pro

    Greetings... I have tried a search but to no avail.... I was given FREE of charge a EVDO pc card to use with UNLIMITED usage p/month...PROBLEM is I have Macbook Pro original release.. the card is obviously the Type II pc card.. 1. is there any way i

  • Idoc from XI to R3 losing fields and segments

    The idocs I have posted from XI to R3 seem to lose some of the fields and segments. The idoc is sent correctly from XI but the idoc posted in R3 have less fields and segments. Any idea? Thanks

  • How to use a SubVI as a trigger for main VI?

    I'm working on my main program now, which calls the two SubVI's (x and y galvo). The program is essential a data acquistion program that acts as an oscilloscope that saves multiple records of data. I have been triggering off of a function generator (

  • Installing KB2888944 on 2012 SP1 - am I missing something?

    MY company has been using SCVMM 2012 SP1 (Update Rollup 5) for a while but, given we already have SCCM, we only recently started playing with SCVMM's service templates.  When we try to depoy a service template, the VMM Guest Agent installs but the ca

  • Editing Tree UI for MDM Hierarchy tables ina WDJ application

    Hi , We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application. However, tree UI is used only for the display purpose. Is there anyway or any other UI available using which we can achive edit option in the tree