Skip to Content
author's profile photo Former Member
Former Member

Reading special characters from URL.

Hi, all

Let me comment about we have a par file that reads a parameter from an URL. For example:


This PAR works fine on ep6.20. But when we deploy it on ep7.0, some special characters can't be readed. for example the character (é) is changed to (?). We notice this changes at the Log Viewer or writing this information in a text file. At same way, these characters (á,í,ó) are changed to (?). This is an example of the change:

ruta = /documents/Portal_COM/KM/DC/Operaciones/Almacenes/M?xico

This PAR have an AbstractPortalComponent class to read the parameter. This is the code:

public void doOnNodeReady(IPortalComponentRequest request, IEvent arg1)
Registrador.escribe(Registrador.ERROR, "Archivos:doOnNodeReady " );
MenuData menuData = new MenuData();
Vector vecMenus =null;
StringBuffer strbPath = new StringBuffer("");

StringBuffer archivoFile= new StringBuffer("");
XmlMenu xmlMenu = null;
Connection conn = null;
String publicPath = request.getPublicResourcePath().toString();
String pathFile = "";

conn = Conexion.getConexion();

String strRuta = request.getParameter("ruta");




Registrador.escribe(Registrador.INFORMATIVA, " ruta = " + this.getRuta());

This PAR file was done in ECLIPSE 2.1.3 with the PDK plugins.

There is some special way to read these special characters or we need to configure something at application server?

Thanks and regards

Jose Angel Rodriguez Olvera

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2006 at 08:24 AM

    Hello Jose,

    You should encode your URL while using special characters like '


    ' .
    Check these articles to know more:

    While reading you should decode the parameters to get the originial character '




    Praveen Gudapati

    p.s. points are always welcome for helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 03:10 PM

    Hi Jose,

    Thank you for the info. i just wanted to know, do you live in Dominican Republic (santo domingo)?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.