Somehow I tend to believe character encoding is already broken before strings are even put into a velocity context.
Or is it that turkish chars are in a source template file, they are not passed as a context variables? What if you could use UnicodeFileResourceLoader, save file as UTF-8withBOM marker. Use Windows Notepad.exe/File/Save as... to do it. Create a simple standalone test program, put some turkish characters to a source template, add more chars to a context variables, run template and save output. Upload a simple test program somwhere available. Its sometimes hard to say anything concrete by reading a brief newsgroup post. --- srht <[EMAIL PROTECTED]> wrote: > > hi Will; > did u look something about the problems. it s > important for our project. > thnks much ... > > > srht wrote: > > > > yes i use it when merging template. and it s not a > singleton > > > > thnks for reply ... > > > > > > > > Will Glass-Husain-2 wrote: > >> > >> That seems about right to me. Are you calling > velocityEngine when > >> merging > >> the template (be sure you don't call the > singleton Velocity). > >> > >> WILL > >> > >> On 8/27/07, srht <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> hi > >>> i use velocity engine with rtf template in my > java application. > >>> but it cant write turkish characters truly in > rtf file. i try set > >>> velocity > >>> engine encoding below. > >>> Properties p = new Properties(); > >>> > >>> p.setProperty( > VelocityEngine.INPUT_ENCODING, > >>> "Windows-1254"); > >>> p.setProperty( > VelocityEngine.OUTPUT_ENCODING, > >>> "Windows-1254"); > >>> > p.setProperty(VelocityEngine.ENCODING_DEFAULT, > >>> "Windows-1254"); > >>> and > >>> p.setProperty( > VelocityEngine.INPUT_ENCODING, > >>> "ISO-8859-9"); > >>> p.setProperty( > VelocityEngine.OUTPUT_ENCODING, > >>> "ISO-8859-9"); > >>> > p.setProperty(VelocityEngine.ENCODING_DEFAULT, > >>> "ISO-8859-9"); > >>> velocityEngine.init(p); > >>> > >>> but it cant work. what else can i do? > >>> thnks for help... > >>> > >>> > >>> -- > >>> View this message in context: > >>> > http://www.nabble.com/turkish-encoding-problem-tf4334216.html#a12343968 > >> > >> -- > >> Forio Business Simulations > >> > >> Will Glass-Husain > >> [EMAIL PROTECTED] > >> www.forio.com > > -- > View this message in context: > http://www.nabble.com/turkish-encoding-problem-tf4334216.html#a12590416 > Sent from the Velocity - User mailing list archive > at Nabble.com. ____________________________________________________________________________________ Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. http://tv.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
