Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

JSTL and foreign characters

  • 28-04-2008 09:06AM
    #1
    Closed Accounts Posts: 658 ✭✭✭


    Hi

    I'm having problems with JSTL and swapping accented foreign vowels for just the vowels without any accent. An example is below.
    <c:set var="link" value="${fn:replace(link,'&#233;','e')}" />
    

    I want to replace all the accents or some browsers will not recognise the é and the link won't work, but this doesn't seem to be working for me. I have searched the internet and found no answer so if anyone has tried and succeeded in doing this and they would like to impart some wisdom I would be very grateful :)

    Thanks


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 2,033 ✭✭✭lynchie


    You try using the unicode escape sequence for é in the string? I know in java code you can specify String s="\u00e9"; to represent é. Maybe it will work in the fn:replace function.


  • Closed Accounts Posts: 658 ✭✭✭pontovic


    Thanks, I'll give that a go then and see how I get on.


Advertisement
Advertisement