Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [vtp-dev] Latin Characters for TTS

Title: Re: [vtp-dev] Latin Characters for TTS
Hi Trip,
 
First of all I would like to apologize for my late reply and thank you for your update.
 
However after checking out the new release from svn  I  have noticed that the  XML declaration of the generate VoiceXML did not contain the encoding attribute so I add to do some more tweaking. I believe that the class org.eclipse.vtp.framework.util.XMLWriter is writing the output xml without encoding data so I have decided to modify HttpConnector class to generated the VoiceXML with the appropriate encoding.The change introduced is reproduced below and I would to know if this is the best approach to follow ?

// Modified to generate voicexml in utf-8

transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");

ByteArrayOutputStream xml = new ByteArrayOutputStream();

//DOMSource source = new DOMSource(document.toXMLSource());

StreamResult result = new StreamResult(xml);

try

{

transformer.transform(document.toXMLSource(), result);

//transformer.transform(document.toXMLSource(), new XMLWriter(writer).toXMLResult());

}

catch (TransformerException e)

{

throw new ServletException(e);

}

 

Thanks in advance

Best regards,

Luis Almeida

 

 

 
 
 


From: vtp-dev-bounces@xxxxxxxxxxx [mailto:vtp-dev-bounces@xxxxxxxxxxx] On Behalf Of Trip Gilman
Sent: terça-feira, 1 de Julho de 2008 17:06
To: Vtp-Dev
Subject: Re: [vtp-dev] Latin Characters for TTS

I completely agree with this.  So I’ve updated the editors and configuration managers that store xml content to use the UTF-8 character encoding.  I did notice that there are a few spots in the runtime components that are using UTF-16 for their documents.  Is there any particular benefits to using one or the other?  I’d like to consolidate things to use a single encoding.

Trip


On 7/1/08 9:24 AM, "Luís Almeida" <lalmeida@xxxxxxxxxxxxx> wrote:

Hi,

Some european languages like portuguese, spanish, etc contain characters that are not us ascii. This highly constrains the use of static text prompts so it would very important to introduce some changes in order to support different encodings in the generated XML files i.e. what are classes should be modified to change  
XML declaration <?xml version="1.0" ?>  to <?xml version="1.0" encoding="UTF-8"?>  in the generated VoiceXML and project (CallDesign.xml)

Thanks in advance,

Best regards,
Luís Miguel Almeida
***********************************
PT Inovação S.A.
Multimedia Networks Division

Rua Tenente Valadim 431 - 7º Piso

4100-479 Porto - PORTUGAL

***************************

URL: www.ptinovacao.pt <file:///C:/Documents%20and%20Settings/lalmeida/Application%20Data/Microsoft/Signatures/www.ptinovacao.pt>

Email: lalmeida@xxxxxxxxxxxxx <mailto:lalmeida@xxxxxxxxxxxxx>

Phone: +351 22 605 68 18

Fax: +351 22 605 68 10

 


_______________________________________________
vtp-dev mailing list
vtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/vtp-dev

Back to the top