Re: Eclipse/WOLips Strange Chinese Characters
Re: Eclipse/WOLips Strange Chinese Characters
- Subject: Re: Eclipse/WOLips Strange Chinese Characters
- From: ISHIMOTO Ken <email@hidden>
- Date: Thu, 13 May 2010 19:30:47 +0200
I am using English, German and japanese with WO now, and all 3 Language have no Problems with UTF-8.
But you are right there are many other Language out there.
Also thanks to Mike for fixing the Velocity Template Engine to UTF-8 last Summer. That helped a lot, and it is possible now
to make all Templates in Japanese.
But usually Japanese is one of the most Problems because there are about 7-8 different Encodings and with UTF-8 it is like
"It just works"....
Ken
On 2010/05/13, at 19:14, Chuck Hill wrote:
> I would not get too excited. I will guess that Ken's string files contain Japanese text which uses a double byte encoding in Unicode. That is easy to detect. Western European languages use mostly single byte encoding which is harder to differentiate from non-Unicode. IIRC, that is the problem that WO has in determining the encoding.
>
>
> Chuck
>
>
> On May 13, 2010, at 4:41 AM, Ramsey Lee Gurley wrote:
>
>> That sounds promising. I'll have to try it again sometime Ken. Last time I attempted it, only UTF-16 worked for me. UTF-8 would be better because when I create a new project using a project template, the .strings are always UTF-8. WOLips doesn't seem to have a way to mark them UTF-16 in a template. I'd prefer one encoding so I simply don't have to think about it.
>>
>> Ramsey
>>
>> On May 13, 2010, at 2:40 AM, ISHIMOTO Ken wrote:
>>
>>> In my Project every file is UTF-8, also the .string files.
>>>
>>> With UTF-8 everywhere Multi language Application are happy and no trouble anymore.
>>>
>>> FrontBase do a got Job in UTF-8 do and it is much easier to use it everywhere as have to deal
>>>
>>> with a lot different encodings in an application.
>>>
>>> Greetings Ken Ishimoto
>>>
>>> iPadから送信
>>>
>>> On 2010/05/12, at 21:34, Anjo Krank wrote:
>>>
>>>> You can edit the files with the built-in editor, which replaces, say, A| with \U00e4. Then you can save them as plain ascii.
>>>>
>>>> Cheers, Anjo
>>>>
>>>>
>>>>
>>>> Am 12.05.2010 um 21:28 schrieb Ramsey Gurley:
>>>>
>>>>> +1
>>>>>
>>>>> UTF-16 big endian, no BOM (UTF-16BE in Eclipse)
>>>>>
>>>>> Ramsey
>>>>>
>>>>> On May 12, 2010, at 2:53 PM, David Holt wrote:
>>>>>
>>>>>> It's my understanding that the .strings files still need to be in UTF16. Has something changed recently?
>>>>>>
>>>>>> d
>>>>>>
>>>>>> On 2010-05-12, at 11:50 AM, David Griffith wrote:
>>>>>>
>>>>>>> In case it should help anyone else in this kind of situation, the problem here was definitely to do with the encoding of the individual files. Somehow, a small number of the files in the project must have remained in another encoding, probably ISO Latin 1, to be honest I don't even know what encoding they had - thanks to BBEdit - it just opens them using its auto-detect feature and allowed me to re-save them as UTF8 or whatever other format I need and having re-imported them to the new project they are now working great. This seemed to happen a lot in XCode, particularly with the localizable.strings files. I don't know why but I remember I had to constantly reconvert them to UTF8. Must be some setting or bug somewhere in XCode. Anyway, I'm starting to feel like all the files in my projects are now getting some kind of consistency with regard to their encoding, thanks to Eclipse, WOLips and BBEdit :)
>>>>>>>
>>>>>>> Regards,
>>>>>>> David.
>>>>>>>
>>>>>>>
>>>>>>> On May 12, 2010, at 8:29 PM, David Griffith wrote:
>>>>>>>
>>>>>>> Hi Ken,
>>>>>>>
>>>>>>> I think this may be the solution. If I try and open the file in BBEdit with UTF8 it says it's corrupted or badly formatted. If I leave it on auto-detect, I can re-save it as UTF8 and it seems to then open correctly.
>>>>>>>
>>>>>>> Thanks!
>>>>>>>
>>>>>>> David.
>>>>>>>
>>>>>>> On May 10, 2010, at 2:12 PM, ISHIMOTO Ken wrote:
>>>>>>>
>>>>>>> For change the encoding on an text file (HTML) file the best solution is using BBEdit.
>>>>>>> I mostly use Japanese and have sometimes problems like that with imported code.
>>>>>>>
>>>>>>> Ken Ishimoto
>>>>>>>
>>>>>>> iPadから送信
>>>>>>>
>>>>>>> On 2010/05/10, at 8:38, David Griffith <email@hidden> wrote:
>>>>>>>
>>>>>>>> Well I've checked this in the Properties for the project, where else can I set it? I haven't found any other points where it can be changed.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> David.
>>>>>>>>
>>>>>>>> On May 10, 2010, at 6:14 AM, Chuck Hill wrote:
>>>>>>>>
>>>>>>>> It sounds like you have the wrong encoding set. Check this under the various file / directory Properties in Eclipse.
>>>>>>>>
>>>>>>>>
>>>>>>>> On May 9, 2010, at 12:16 PM, David Griffith wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> In one of my apps that I've converted over to Eclipse, I am having trouble updating the HTML pages. I've noticed that on some of the pages I am getting two strange symbols as the first entries in the HTML file. Then, if I click in some text and try to delete it letter by letter, I have to delete twice each time to delete one character. If I then type some new text, it appears fine in the file but when I load it in a browser it shows as chinese characters. The rest of the page is fine, only the new characters appear like this. If I delete the two strange characters at the beginning of the file it seems to create even more strange behaviour.
>>>>>>>>>
>>>>>>>>> I am currently updating Eclipse to the latest version in case it might be a bug in there, but it looks to me like something to do with encoding. I have set the workspace encoding to UTF-8 but I'm not sure how to check the actual encoding on any given page. I have had this problem (or something similar) before in XCode and as I remember I had to use the 'convert' command to actually convert the file to UTF-8 as it was either saved in some other format or was corrupted.
>>>>>>>>>
>>>>>>>>> Anyone ever seen this? Or anyone know if there is an equivalent 'convert' command in Eclipse to specifically set the encoding for any given document?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> David. _______________________________________________
>>>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>>>> Webobjects-dev mailing list (email@hidden)
>>>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>>>
>>>>>>>>> This email sent to email@hidden
>>>>>>>>
>>>>>>>> --
>>>>>>>> Chuck Hill Senior Consultant / VP Development
>>>>>>>>
>>>>>>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>>>>>>> http://www.global-village.net/products/practical_webobjects
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>>> Webobjects-dev mailing list (email@hidden)
>>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>>
>>>>>>>> This email sent to email@hidden
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>> Webobjects-dev mailing list (email@hidden)
>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>
>>>>>>> This email sent to email@hidden
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>> Webobjects-dev mailing list (email@hidden)
>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>
>>>>>>> This email sent to email@hidden
>>>>>>
>>>>>> _______________________________________________
>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>> Webobjects-dev mailing list (email@hidden)
>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>
>>>>>> This email sent to email@hidden
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list (email@hidden)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>
>>>>> This email sent to email@hidden
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/products/practical_webobjects
>
>
>
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden