How do I supress the encoding of UTF-8 characters in a f:param element

Hello,
I have a keyboard displayed on my page, which won't work properly because of the used german characters.
I have an icon for every button embedded in a link, which adds the selected character to the searchstring.
For example adding an a works like this:
from keyboard.xhtml:
<s:link><f:param name="#{keyname}" value="#{keyword}a"/><h:graphicImage value="key_a.png"/></s:link>keyname and keyword are parameters submitted by the including form:
from myform.xhtml:
<ui:param name="keyword" value="#{end}"/>
<ui:param name="keyname" value="end"/>This works great as long as the character is a standard one, but on as soon as I have a german umlaut in the string, the umlaut gets encoded/escaped with every single character that i add to the searchstring:
The string makes it's way correctly to the keyboard-template, I can use a h:outputText to show it on the page and it doesn't get escaped.
So, how can I prevent the escaping of my characters in the f:params elements?
I really need to get this to work. so any hint or even solution would be fabulous.
Thanks in advance, Peter
PS: maybe my web server is doing something nasty, so it would be nice, if someone can check this code:
<s:link><f:param name="test" value="�"/>INIT</s:link><br/>
<s:link><f:param name="test" value="#{test}"/>REPEAT</s:link><br/>
INFO: <h:outputText value="#{test}" /><br/>here is the same one with h:outputLink
<h:outputLink><f:param name="test" value="�"/>INIT</h:outputLink><br/>
<h:outputLink><f:param name="test" value="#{test}"/>REPEAT</h:outputLink><br/>
INFO: <h:outputText value="#{test}" /><br/>EDIT: I found the solution, it was my beloved jboss application server, after adding a parameter to the server.xml, everything worked as expected:
use page settings:
<Connector port="8080" .....
useBodyEncodingForURI="true" ..../>hardcoded:
<Connector port="8080" .....
URIEncoding="UTF-8" ..../> Edited by: pete007 on Mar 12, 2008 1:47 PM

"Encoding" refers to the charset used to convert the Unicode data into bytes. But since you're writing to a String, you aren't converting the data to bytes and therefore UTF-16 is the appropriate encoding. It doesn't make sense to ask for your data to be encoded in UTF-8 when you aren't producing bytes.
You could read this tutorial about XML and Unicode and encodings for more information:
http://skew.org/xml/tutorial/

Similar Messages

  • How Can i change the Encoding for Mp3 cds???

    I am curious on how i can chane the Encoding With on i tunes.....The reason is im heavily into car audio and always like to see the names of the bands and song title come up when i play them in my car. Ive noticed certain bands show up on the screen of my cd player..but others say no artist. Ive Also noticed some have a different encoding such as Lame 3.96....... Does Anyone Know How to Change the Encoding With....Or Make it Show up on my car cd player?

    Do you mean you'd rather import using say AAC for instance instead of mp3?
    Go to iTunes Preferences (+,)>advanced>importing>import using> change to which ever format you desire.
    When you burn the cd, check "include CD text" under the audio section if you're burning an audio CD.

  • How do we supress the code access to wifi?

    How do I supress the access code to Wifi?
    thank you

    Sorry. It's unclear what you mean. Please clarify what you mean by "suppress the access code to WiFi".

  • How do you convert the encoder counts to RMP of the motor using a myRIO in LabVIEW?

    My intent is to gain hardware interfacing and general Labview experience. I am using a myRIO to control a Pittman 8222 34V Brushed DC motor (Motor Specs).
    I recently created a code to control the angle of this motor using PID, which was visually implemented using the black disc with a white tick mark on it (see attached picture: "IMG_2523"). 
    I now want to control the speed of this motor againg using PID, but I am not sure how to properly convert the encoder counts to RPM of this motor. I have attached 2 screen shots of my block diagram and my front panel for reference ("Capture" and "Capture2"). In the front panel picture, you can see my "actual" speed of the motor is a very choppy signal when it should theoretically be a flat line. To get the RPM, I currently use a shift register to store the current count value (which I converted to deg, then to radians), and then subtract the previous run's value, then divide by the while loop sampling time (10 ms). This would give me rad/s, which I then wrote a subVI to convert it to rpm. 
    Any help would be greatly appreciated, thanks. 

    Hi,
    One thing you could try doing is verifying that the conversion from rad/s to rpm is working correctly. 
    This tutorial might also be helpful. It's not using the same hardware that you are, but goes through the general steps using PID control. 
    CompactRIO Motor Control Basics Tutorial: http://www.ni.com/pdf/labview/us/compactrio_motor_control_basics.pdf
     

  • How to find out the encoding of a file

    How to findout the encoding of a file being read?
    Thanks in advance?

    It depends on the file.
    Sometimes it is possible by analysing the file contents. Other times you have to know a priori.
    And you are welcome.

  • How to find out the encoding of an XML input document

    Hello all,
    I read a XML file into a DOM document and would like to save it back in the same encoding as the input. How do I find out the encoding of the input document?
    This is my code for reading the document:
    import java.io.File;
    import java.io.FileInputStream;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.stream.StreamSource;
    import org.w3c.dom.Document;
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    DOMResult domResult = new DOMResult();
    transformer.transform(new StreamSource(new FileInputStream(fileName)),
                          domResult);
    Document doc = (Document)domResult.getNode();
    .

    FileInputStream fis = new FileInputStream(fileName);
    String encoding = new InputSource(fis).getEncoding();
    fis.close();Note that this only works because you can get an InputStream over the document twice. If the document were coming from an HTTP response (for example) it wouldn't work.

  • How can I change the encoding of a font "on the fly" in Illustrator

    Is it possible to do that. I saw that in CorelDraw if you press Ctrl+Shift+E with a text selected a dialog windows appears with the option to choose beteen different code tables, so non unicode fonts can be made to show the right gliphs. Or maybe there is a script somewhere I dont know of. Thank you in advance!

    Monika Gause wrote:
    Set the encoding when placing the text in Illustrator
    How can I do that? I know that I can do my work in Corel then copy-paste it in Illustrator, but I wanted to know if there is a way to do it in Illustrator, besides I dont want to go back and forth between them, if I later dacide to make some corrections. Thank you!

  • How to remove/supress the multilevel heuristics button from the plng book

    Hi Gurus,
    how can i remove or supress the multilevel heuristics button from the SNP Planning book..
    could you share your ideas.
    thanks

    Hi
    You have not mentioned if you are using standard planning book or custom book. If it is a standard planning book provided by SAP you cannot make any changes to it . But if it is a custom book then all you have to do is , go to /n/sapapo/sdp94 bring up the planning book , go to design , select toolbar and remove the icon that you dont need and save .
    Thanks
    Aparna

  • How can I supress the 'misses' with a linux 'find'

    Hi,
    I'm searching for a string using 'find'.
    When using find, I always get a lot of rows of dierctories that say 'permission denied' in my output. How can I supress those rows.
    find ./ -name 'abc' -print

    Use *2>/dev/null* at the end of your find command to suppress Permission denied.
    $ find /etc -name oracle
    find: /etc/cron.d: Permission denied
    /etc/oracle
    /etc/oracle/test2/oracle
    find: /etc/racoon/certs: Permission denied
    find: /etc/audit: Permission denied
    find: /etc/lvm: Permission denied
    $ find /etc -name oracle *2>/dev/null*
    /etc/oracle
    /etc/oracle/test2/oracle
    $

  • How do I convert the old sync key (12 characters, no dashes) to the new sync key (31 characters, 5 dashes)?

    My sync key used to be 12 characters, no dashes (xxxxxxxxxxxx). After uninstalling and reinstalling FF 3.6.13, Sync 1.6.1 refuses my 12 character sync key.
    I discovered, that sync keys for all users have been switched to 31 characters including 5 dashes (x-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx). How do I get the new sync key?
    I have no PCs connected to Firefox Sync anymore but Firefox Home and 360 Browser on my iPhone sync successfully. Unfortunately on the iPhone I cannot display the currently used sync key. Is there a way to convert the old sync key to the new one?
    I need the bookmarks saved in my Sync account.
    Thanks for your help!

    I had the exact same symptoms you did. Here's my solution:
    I installed an older version of firefox sync (1.4.something, I think) and then added my account using my old short firefox sync key. When trying to sync, the outdated addon said that in order to perform the sync, it needed to be updated. After updating, I was still signed in, but now had the added feature of seeing my new long firefox sync key which was compatible with FF 4b, etc. Everything is working smoothly now and my computer is syncing correctly.

  • How can I know the encoding format for a file.

    I have files encoded in English, Spanish, Japanese etc. I want to know which file has which encoding format while reading.
    Can anyone suggest.
    Ashish

    Language is different from "encoding"...if you mean character encoding. Multiple languages can be represented by a single encoding. The fact that you mix language and encoding in your question confuses me about what you are asking.
    If you want to know what language a file uses, you can always use a meta-tag. Or you can do some kind of text analysis based on dictionary lookups to determine language...too complex for my tastes. I think a simple language tag in the file makes more sense.
    As for character encoding, you either standardize on a single encoding for all files or again use a meta-tag. If you standardize on a single encoding, you should probably consider one of the Unicode encodings instead of any other character set encoding.
    Regards,
    John O'Conner

  • How do you supress the leading Zeros from a numeric value

    For example:
    v_tmp = '0005'.
    where v_tmp is of type NUMC(6),i can't change the data type as i get this value from a database table.
    how do i convert v_tmp to '5'?
    Thanks in advance.

    data : v_int type i.
    v_int = v_tmp.
    If you want to move it to a CHAR variable, follow as below
    data : v_numc(6) type n,
           v_char(10) type c.
           v_char = v_numc.
           condense v_char.
       SHIFT v_char LEFT DELETING LEADING '0'.
    Regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • How I may change the encoding names for downloaded files?

    I have some problem with encoding when I download files from russian sites. The downloaded files look like this "ìîé êàáèíåò - èíôîðìàöèÿ"

    Firefox, as is, will only download the file. You can choose where the file is
    saved, but that's it.
    Go to the '''''[https://addons.mozilla.org/en-US/firefox/ Mozilla Add-ons Web Page]''''' {web link}
    (There’s a lot of good stuff here) and search for '''download managers.'''
    Many of them give you a chance to change the file name.

  • How do I supress the "sync encountered an error while syncing" bar? I get it every time I connect to a work VPN that is isolated from the internet.

    Background: For work I routinely need to connect to a secure VPN that is completely isolated from the internet. When using it, I can only connect to the servers that reside within the network and the VPN software (Cisco AnyConnect + NAC Agent) seems to automatically redirect all http requests to external sites to a catch-all 'sorry you can't do that' page.
    So while connected to the VPN, Firefox Sync doesn't work and nor do I expect it to. However, my issue is that every time I connect to the VPN, Firefox silently pops up a "sync encountered an error while syncing" error message bar at the bottom of the browser, which I have to manually close. This obviously isn't the end of the world, but having to do it all the time gets annoying so I was wondering if there was a way of suppressing that particular error message or maybe getting Sync to handle the secure VPN more gracefully.

    I don't know about blocking that message, but my suggestion is to turn Sync autoconnect off, and use Sync manually.
    Type '''about:config''' in the URL bar and hit Enter. <br />
    Then type '''''autoconnect''''' in the Search bar at the top. <br />
    '''services.sync.autoconnect''' = double-click that pref to toggle it to '''false'''.
    Then to trigger a Sync manually, hit '''Sync Now''' in the Firefox menu ''(or the File menu)''.

  • How to programatically supress the visibility of the Box Object

    Hi,
    I need to hide or show the Box and Line object and / or change the foreground and background color using condition which depends on some databes field in the same way as for Text objects.
    Is it possible ?
    Regards,
    Marek Zgadzaj

    Hi Don,
    I used the phrase "programatically" but I meant the use of the expression in designer time to change the Box visibility depending on that expression evaluation. Such the expressions can be used for most for objects, ie. Text object but not for Box and Line objects.
    As you know, the designer does not allow to set the expressions for Box and Line objects to change their visibilty and background/foreground colors in similar way as for the other objects, so it can be assumed that is impossible to do it in the C# code.
    I had a little hope that this feature is included in newest CR version, but I was informed that it is not implemented.
    I can live without it, but in my opinion, all objects, including Box an Line, should have similar and complementary functionality to change theirs properties with using expressions. I do not know why Box and Line were excluded.
    Don, thank you  for the support
    Regards,
    Marek

Maybe you are looking for