Have you looked at http://xdoclet.sourceforge.net/tags/xdoclet-tags.html?
There's a @msg that generates i18n message bundles
Perhaps there's something in there that can help out?
-Tim

Erik Hatcher wrote:

On Mar 29, 2004, at 7:51 AM, Eduardo Franceschi wrote:

I wrote a XDoclet subtask to generate the ApplicationResources.properties file to be used in a struts application.


Cool!

Until here everything works very fine. But I would like to generate i18n specific resources that include languages that use another character encoding like ISO-8859-1(like spanish and portuguese). So, when I try to use:
/**
* @struts.message locale="pt_BR" name="report" value="Relat�rio"
*/
XDoclet produces:
report=Relatórios
instead of
report=Relat�rios
Why ? Something I miss ? Bug ?



I'm not sure if there are any XDoclet issues involved here, but how you encode your .java files is crucial. Are you saving them as UTF-8 encoding? You will need to do that at the very least. One fine point here.... languages don't use character encodings.... just the representation in bytes is encoded.


Perhaps xjavadoc is not encoding aware? I mean, it would need to be told what encoding to read .java files with, and I'm not sure what it assumes currently, or if there is a way to switch it. This may be the issue in your situation.

Erik



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user




------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to