Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Encoding: (9 Items)
   
Encoding  
Starting to work on Linux I got bitten by character encoding that is different on Windows and Linux.  To keep it simple 
I would have like switch Linux to cp1252 but it's not available. I look on the web but found no solution aside switching
 to UTF8 which is not currently an option for me; how would you get a pterm/vi to understand UTF8.
Re: Encoding  
Set LANG env var. For example
LANG=en_CA.UTF-8

(for terminal apps)

Mario Charest wrote:
> Starting to work on Linux I got bitten by character encoding that is different on Windows and Linux.  To keep it 
simple I would have like switch Linux to cp1252 but it's not available. I look on the web but found no solution aside 
switching to UTF8 which is not currently an option for me; how would you get a pterm/vi to understand UTF8.
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22569
> 
RE: Encoding  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: February-19-09 5:21 PM
> To: general-ide
> Subject: Re: Encoding
> 
> Set LANG env var. For example
> LANG=en_CA.UTF-8
> 
> (for terminal apps)


Doesn't work for vi, which probably has its own setting somewhere.  Elena given your reply I assume you know of no way 
to add cp1252 encoding to Linux/Eclipse.  Internally how do QNX people deal with this issue, or are you simply not using
 any character >127  ;-)

> 
> Mario Charest wrote:
> > Starting to work on Linux I got bitten by character encoding that is
> different on Windows and Linux.  To keep it simple I would have like
> switch Linux to cp1252 but it's not available. I look on the web but
> found no solution aside switching to UTF8 which is not currently an
> option for me; how would you get a pterm/vi to understand UTF8.
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post22569
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22574
> 
Re: Encoding  
I know how to change encoding in eclipse. Window->Preferences->General->Workspace - There is a preference at the bottom.

On Linux terminal apps it is just works for me (I use vim sometimes (utf8))

Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: February-19-09 5:21 PM
>> To: general-ide
>> Subject: Re: Encoding
>>
>> Set LANG env var. For example
>> LANG=en_CA.UTF-8
>>
>> (for terminal apps)
> 
> 
> Doesn't work for vi, which probably has its own setting somewhere.  Elena given your reply I assume you know of no way
 to add cp1252 encoding to Linux/Eclipse.  Internally how do QNX people deal with this issue, or are you simply not 
using any character >127  ;-)
> 
>> Mario Charest wrote:
>>> Starting to work on Linux I got bitten by character encoding that is
>> different on Windows and Linux.  To keep it simple I would have like
>> switch Linux to cp1252 but it's not available. I look on the web but
>> found no solution aside switching to UTF8 which is not currently an
>> option for me; how would you get a pterm/vi to understand UTF8.
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post22569
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post22574
>>
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22576
> 
RE: Encoding  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: February-20-09 9:31 AM
> To: general-ide
> Subject: Re: Encoding
> 
> I know how to change encoding in eclipse. Window->Preferences->General-
> >Workspace - There is a preference at the bottom.


Yeah but on Linux ( Ubuntu ) cp-1252 isn`t available.  How do you manage file compatibility between a Linux and Windows 
host?

> On Linux terminal apps it is just works for me (I use vim sometimes
> (utf8))
> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: February-19-09 5:21 PM
> >> To: general-ide
> >> Subject: Re: Encoding
> >>
> >> Set LANG env var. For example
> >> LANG=en_CA.UTF-8
> >>
> >> (for terminal apps)
> >
> >
> > Doesn't work for vi, which probably has its own setting somewhere.
> Elena given your reply I assume you know of no way to add cp1252
> encoding to Linux/Eclipse.  Internally how do QNX people deal with this
> issue, or are you simply not using any character >127  ;-)
> >
> >> Mario Charest wrote:
> >>> Starting to work on Linux I got bitten by character encoding that
> is
> >> different on Windows and Linux.  To keep it simple I would have like
> >> switch Linux to cp1252 but it's not available. I look on the web but
> >> found no solution aside switching to UTF8 which is not currently an
> >> option for me; how would you get a pterm/vi to understand UTF8.
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post22569
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post22574
> >>
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post22576
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22613
> 
Re: Encoding  
I guess we don't have such problem because we are not writing docs and code in other languages.
For personal use UTF8 works fine for me. But we have lots of customers in Germany and Japan and I have not heard them 
complaining...
Maybe they don't use Linux... Did you search inet on this problem?


Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: February-20-09 9:31 AM
>> To: general-ide
>> Subject: Re: Encoding
>>
>> I know how to change encoding in eclipse. Window->Preferences->General-
>>> Workspace - There is a preference at the bottom.
> 
> 
> Yeah but on Linux ( Ubuntu ) cp-1252 isn`t available.  How do you manage file compatibility between a Linux and 
Windows host?
> 
>> On Linux terminal apps it is just works for me (I use vim sometimes
>> (utf8))
>>
>> Mario Charest wrote:
>>>> -----Original Message-----
>>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>>>> Sent: February-19-09 5:21 PM
>>>> To: general-ide
>>>> Subject: Re: Encoding
>>>>
>>>> Set LANG env var. For example
>>>> LANG=en_CA.UTF-8
>>>>
>>>> (for terminal apps)
>>>
>>> Doesn't work for vi, which probably has its own setting somewhere.
>> Elena given your reply I assume you know of no way to add cp1252
>> encoding to Linux/Eclipse.  Internally how do QNX people deal with this
>> issue, or are you simply not using any character >127  ;-)
>>>> Mario Charest wrote:
>>>>> Starting to work on Linux I got bitten by character encoding that
>> is
>>>> different on Windows and Linux.  To keep it simple I would have like
>>>> switch Linux to cp1252 but it's not available. I look on the web but
>>>> found no solution aside switching to UTF8 which is not currently an
>>>> option for me; how would you get a pterm/vi to understand UTF8.
>>>>> _______________________________________________
>>>>> General
>>>>> http://community.qnx.com/sf/go/post22569
>>>>>
>>>> _______________________________________________
>>>> General
>>>> http://community.qnx.com/sf/go/post22574
>>>>
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post22576
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post22613
>>
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22614
> 
RE: Encoding  
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: February-20-09 9:46 AM
> To: general-ide
> Subject: Re: Encoding
> 
> I guess we don't have such problem because we are not writing docs and
> code in other languages.
> For personal use UTF8 works fine for me. But we have lots of customers
> in Germany and Japan and I have not heard them complaining...

Handling Japanese would require using UTF in the first place, on all machines.  I don`t think German have extra 
character that are >127...  

> Maybe they don't use Linux... Did you search inet on this problem?
> 

Yes I did and came up empty.  So far it seems my only solution would be to use ISO-8559-1 which looks like it`s close 
enough.  Or convert everything to UTF-8 but that would become a real mess, I can just imagine someone editing a file 
with notepad under Windows, oh boy.  Would have been so simple if Eclipse/Java supplied CP1252 encoding.  Don't you get 
the feeling sometime someone is out there making sure your life is complicated enough ;-)

> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: February-20-09 9:31 AM
> >> To: general-ide
> >> Subject: Re: Encoding
> >>
> >> I know how to change encoding in eclipse. Window->Preferences-
> >General-
> >>> Workspace - There is a preference at the bottom.
> >
> >
> > Yeah but on Linux ( Ubuntu ) cp-1252 isn`t available.  How do you
> manage file compatibility between a Linux and Windows host?
> >
> >> On Linux terminal apps it is just works for me (I use vim sometimes
> >> (utf8))
> >>
> >> Mario Charest wrote:
> >>>> -----Original Message-----
> >>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >>>> Sent: February-19-09 5:21 PM
> >>>> To: general-ide
> >>>> Subject: Re: Encoding
> >>>>
> >>>> Set LANG env var. For example
> >>>> LANG=en_CA.UTF-8
> >>>>
> >>>> (for terminal apps)
> >>>
> >>> Doesn't work for vi, which probably has its own setting somewhere.
> >> Elena given your reply I assume you know of no way to add cp1252
> >> encoding to Linux/Eclipse.  Internally how do QNX people deal with
> this
> >> issue, or are you simply not using any character >127  ;-)
> >>>> Mario Charest wrote:
> >>>>> Starting to work on Linux I got bitten by character encoding that
> >> is
> >>>> different on Windows and Linux.  To keep it simple I would have
> like
> >>>> switch Linux to cp1252 but it's not available. I look on the web
> but
> >>>> found no solution aside switching to UTF8 which is not currently
> an
> >>>> option for me; how would you get a pterm/vi to understand UTF8.
> >>>>> _______________________________________________
> >>>>> General
> >>>>> http://community.qnx.com/sf/go/post22569
> >>>>>
> >>>> _______________________________________________
> >>>> General
> >>>> http://community.qnx.com/sf/go/post22574
> >>>>
> >>>
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post22576
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post22613
> >>
>...
Re: Encoding  
I think I found answer on the linux forum. Ignore the pop-up just type-in your encoding name "cp1252" in the input field
 (in Worspace preferences).


Mario Charest wrote:
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: February-20-09 9:46 AM
>> To: general-ide
>> Subject: Re: Encoding
>>
>> I guess we don't have such problem because we are not writing docs and
>> code in other languages.
>> For personal use UTF8 works fine for me. But we have lots of customers
>> in Germany and Japan and I have not heard them complaining...
> 
> Handling Japanese would require using UTF in the first place, on all machines.  I don`t think German have extra 
character that are >127...  
> 
>> Maybe they don't use Linux... Did you search inet on this problem?
>>
> 
> Yes I did and came up empty.  So far it seems my only solution would be to use ISO-8559-1 which looks like it`s close 
enough.  Or convert everything to UTF-8 but that would become a real mess, I can just imagine someone editing a file 
with notepad under Windows, oh boy.  Would have been so simple if Eclipse/Java supplied CP1252 encoding.  Don't you get 
the feeling sometime someone is out there making sure your life is complicated enough ;-)
> 
>> Mario Charest wrote:
>>>> -----Original Message-----
>>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>>>> Sent: February-20-09 9:31 AM
>>>> To: general-ide
>>>> Subject: Re: Encoding
>>>>
>>>> I know how to change encoding in eclipse. Window->Preferences-
>>> General-
>>>>> Workspace - There is a preference at the bottom.
>>>
>>> Yeah but on Linux ( Ubuntu ) cp-1252 isn`t available.  How do you
>> manage file compatibility between a Linux and Windows host?
>>>> On Linux terminal apps it is just works for me (I use vim sometimes
>>>> (utf8))
>>>>
>>>> Mario Charest wrote:
>>>>>> -----Original Message-----
>>>>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>>>>>> Sent: February-19-09 5:21 PM
>>>>>> To: general-ide
>>>>>> Subject: Re: Encoding
>>>>>>
>>>>>> Set LANG env var. For example
>>>>>> LANG=en_CA.UTF-8
>>>>>>
>>>>>> (for terminal apps)
>>>>> Doesn't work for vi, which probably has its own setting somewhere.
>>>> Elena given your reply I assume you know of no way to add cp1252
>>>> encoding to Linux/Eclipse.  Internally how do QNX people deal with
>> this
>>>> issue, or are you simply not using any character >127  ;-)
>>>>>> Mario Charest wrote:
>>>>>>> Starting to work on Linux I got bitten by character encoding that
>>>> is
>>>>>> different on Windows and Linux.  To keep it simple I would have
>> like
>>>>>> switch Linux to cp1252 but it's not available. I look on the web
>> but
>>>>>> found no solution aside switching to UTF8 which is not currently
>> an
>>>>>> option for me; how would you get a pterm/vi to understand UTF8.
>>>>>>> _______________________________________________
>>>>>>> General
>>>>>>> http://community.qnx.com/sf/go/post22569
>>>>>>>
>>>>>> _______________________________________________
>>>>>> General
>>>>>>...
RE: Encoding  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: February-20-09 10:20 AM
> To: general-ide
> Subject: Re: Encoding
> 
> I think I found answer on the linux forum. Ignore the pop-up just type-
> in your encoding name "cp1252" in the input field (in Worspace
> preferences).
>

*Bow*
 
> 
> Mario Charest wrote:
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: February-20-09 9:46 AM
> >> To: general-ide
> >> Subject: Re: Encoding
> >>
> >> I guess we don't have such problem because we are not writing docs
> and
> >> code in other languages.
> >> For personal use UTF8 works fine for me. But we have lots of
> customers
> >> in Germany and Japan and I have not heard them complaining...
> >
> > Handling Japanese would require using UTF in the first place, on all
> machines.  I don`t think German have extra character that are >127...
> >
> >> Maybe they don't use Linux... Did you search inet on this problem?
> >>
> >
> > Yes I did and came up empty.  So far it seems my only solution would
> be to use ISO-8559-1 which looks like it`s close enough.  Or convert
> everything to UTF-8 but that would become a real mess, I can just
> imagine someone editing a file with notepad under Windows, oh boy.
> Would have been so simple if Eclipse/Java supplied CP1252 encoding.
> Don't you get the feeling sometime someone is out there making sure
> your life is complicated enough ;-)
> >
> >> Mario Charest wrote:
> >>>> -----Original Message-----
> >>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >>>> Sent: February-20-09 9:31 AM
> >>>> To: general-ide
> >>>> Subject: Re: Encoding
> >>>>
> >>>> I know how to change encoding in eclipse. Window->Preferences-
> >>> General-
> >>>>> Workspace - There is a preference at the bottom.
> >>>
> >>> Yeah but on Linux ( Ubuntu ) cp-1252 isn`t available.  How do you
> >> manage file compatibility between a Linux and Windows host?
> >>>> On Linux terminal apps it is just works for me (I use vim
> sometimes
> >>>> (utf8))
> >>>>
> >>>> Mario Charest wrote:
> >>>>>> -----Original Message-----
> >>>>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >>>>>> Sent: February-19-09 5:21 PM
> >>>>>> To: general-ide
> >>>>>> Subject: Re: Encoding
> >>>>>>
> >>>>>> Set LANG env var. For example
> >>>>>> LANG=en_CA.UTF-8
> >>>>>>
> >>>>>> (for terminal apps)
> >>>>> Doesn't work for vi, which probably has its own setting
> somewhere.
> >>>> Elena given your reply I assume you know of no way to add cp1252
> >>>> encoding to Linux/Eclipse.  Internally how do QNX people deal with
> >> this
> >>>> issue, or are you simply not using any character >127  ;-)
> >>>>>> Mario Charest wrote:
> >>>>>>> Starting to work on Linux I got bitten by character encoding
> that
> >>>> is
> >>>>>> different on Windows and Linux.  To keep it simple I would have
> >> like
> >>>>>> switch Linux to cp1252 but it's not available. I look on the web
> >> but
> >>>>>> found no...
View Full Message