Skip to Content
0
Former Member
Mar 23, 2006 at 10:24 AM

How to encode japanese characters and URL parameters ?

298 Views

Hello,

Does anyone has any idea how can I send japanese characters to another application via URL ? Currently its reading displaying garbage on the other end. My source code as follow :

String urlToPDFview = null;

// Generating the URL string and store it into the refLink context.

IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();

String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

Map urlParameters = new HashMap();

// Prepearing the parameters for Side 1 to be sent over as part of the URL string

urlParameters.put("EmpNameSide1" ,wdContext.currentSide1Element().getEmployeeName());

try

{

WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(deployableObjectName,

"Previewview",WDDeployableObjectPartType.APPLICATION);

urlToPDFview = WDURLGenerator.getApplicationURL(deployableObjectPart,urlParameters);

}

catch (WDURLException e)

{

messageMgr.reportException(e.getLocalizedMessage(),false);

}

catch (WDDeploymentException ex)

{

messageMgr.reportException(ex.getLocalizedMessage(),false);

}

IWDWindowInfo windowInfo = (IWDWindowInfo) wdThis.wdGetAPI().getComponent().getComponentInfo().findInWindows("App2");

IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(urlToPDFview,"test",true);

window.setWindowPosition(300, 150);

window.open();

from

Kwok Wei