Re: French Character In ReportMill (Slightly Off Topic)
Dev WO <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Jeff,
Try either:
-getting the data using Ressource Manager from an UTF-16 (not
UTF-8) .strings files
-setting the encoding of the .java file to Mac OS Roman
I think both will work.
Xavier
> Hello Folks,
>
> I know that this is kind of off topic. However I am not sure if
> there is a mailing list where this would be appropriate to post. I
> have a WebObjects applications that is trying to send send a string
> with French characters into a dataset to create a report.
>
> For examples I have a NSArray of Strings some of which contain
> French characters:
>
> NSArray provinceNames = new NSArray(new Object[] {"...", "...",
> "Quebec/Québec"});
>
> I then obtain the string from the NSArray like so:
>
> String provinceName = (String)provinceNames.objectAtIndex(i);
>
> I also then have:
>
> NSMutableDictionary dataset = new NSMutableDictionary();
>
> dataset.setObjectForKey(provinceName, "province");
>
> Where my key in ReportMill is:
>
> @province@
>
> I suspect that the display problem has something to do with the
> fact that Java Strings are usually unicode and that the ReportMill
> template is UTF-8. The problem is I am not sure how to put the
> string in the dataset in a different encoding. I know it is
> possible to change the encoding a Java String using streams and
> such but that seems to be an overly complicated for what I am
> doing. Does anyone have any ideas?
>
> Thanks and sorry for being a bit off topic.
>
> Regards,
> Jeff
>
>
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev