UTF-8 file + console

2009-03-31 Thread Arek Czereszewski
Hi,

I have php application in UTF-8 on server
(in files are 4 languages: PL, SK, CZ and EN).

Is there any chance to edit this files on console?
Or should I edit files in Linux/Mac/Win editor with
UTF support and upload then to server?

Regards
Arek
-- 
Arek Czereszewski
arek (at) wup-katowice (dot) pl
UNIX allows me to work smarter, not harder.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Jeff Laine
On Tue, Mar 31, 2009 at 07:47:56AM +0200, Arek Czereszewski wrote:
 Hi,
 
 I have php application in UTF-8 on server
 (in files are 4 languages: PL, SK, CZ and EN).
 
 Is there any chance to edit this files on console?
 Or should I edit files in Linux/Mac/Win editor with
 UTF support and upload then to server?
 
 Regards
 Arek
 -- 
 Arek Czereszewski
 arek (at) wup-katowice (dot) pl
 UNIX allows me to work smarter, not harder.


I use bluefish editor (www/bluefish) for such purposes of mine. It  can handle 
various 
encodings and highlight code.


-- 
Best regards,
Jeff

| Nobody wants to say how this works.  |
|  Maybe nobody knows ...  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Jeff Laine
Sorry, I missed that you need a console editor. bluefish requires X

-- 
Best regards,
Jeff

| Nobody wants to say how this works.  |
|  Maybe nobody knows ...  |
|   Xorg.conf(5)|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Arek Czereszewski
Jeff Laine pisze:
 Sorry, I missed that you need a console editor. bluefish requires X
 
Yes, I don't have X on my servers.



-- 
Arek Czereszewski
arek (at) wup-katowice (dot) pl
UNIX allows me to work smarter, not harder.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Paul B. Mahol
On 3/31/09, Arek Czereszewski a...@wup-katowice.pl wrote:
 Hi,

 I have php application in UTF-8 on server
 (in files are 4 languages: PL, SK, CZ and EN).

 Is there any chance to edit this files on console?
 Or should I edit files in Linux/Mac/Win editor with
 UTF support and upload then to server?

You can edit them inside vim, but they will not be
displayed correctly.


-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Paul B. Mahol
On 3/31/09, Thomas Dickey dic...@radix.net wrote:
 On Tue, Mar 31, 2009 at 11:36:32AM +0200, Paul B. Mahol wrote:
 On 3/31/09, Arek Czereszewski a...@wup-katowice.pl wrote:
  Hi,
 
  I have php application in UTF-8 on server
  (in files are 4 languages: PL, SK, CZ and EN).
 
  Is there any chance to edit this files on console?
  Or should I edit files in Linux/Mac/Win editor with
  UTF support and upload then to server?

 You can edit them inside vim, but they will not be
 displayed correctly.

 That might be a configuration issue rather than the program.
 (EN in particular ;-)

Generally speaking FreeBSD console doesnt support UTF-8. So even if
program (in this case vim) supports UTF-8 it will not work.


-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Maciej Milewski
Tuesday 31 March 2009 12:15:33 Paul B. Mahol napisał(a):
 On 3/31/09, Thomas Dickey dic...@radix.net wrote:
  On Tue, Mar 31, 2009 at 11:36:32AM +0200, Paul B. Mahol wrote:
  On 3/31/09, Arek Czereszewski a...@wup-katowice.pl wrote:
   Hi,
  
   I have php application in UTF-8 on server
   (in files are 4 languages: PL, SK, CZ and EN).
  
   Is there any chance to edit this files on console?
   Or should I edit files in Linux/Mac/Win editor with
   UTF support and upload then to server?
 
  You can edit them inside vim, but they will not be
  displayed correctly.
 
  That might be a configuration issue rather than the program.
  (EN in particular ;-)

 Generally speaking FreeBSD console doesnt support UTF-8. So even if
 program (in this case vim) supports UTF-8 it will not work.
What about editing with vim and setting manualy fileencoding=utf8?
Next time you open this file vim should know that it is utf8 file or am I 
wrong?

-- 
Regards,
Maciej Milewski
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Thomas Dickey
On Tue, Mar 31, 2009 at 11:36:32AM +0200, Paul B. Mahol wrote:
 On 3/31/09, Arek Czereszewski a...@wup-katowice.pl wrote:
  Hi,
 
  I have php application in UTF-8 on server
  (in files are 4 languages: PL, SK, CZ and EN).
 
  Is there any chance to edit this files on console?
  Or should I edit files in Linux/Mac/Win editor with
  UTF support and upload then to server?
 
 You can edit them inside vim, but they will not be
 displayed correctly.

That might be a configuration issue rather than the program.
(EN in particular ;-)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpvrihzKDCC6.pgp
Description: PGP signature


Re: UTF-8 file + console

2009-03-31 Thread Paul B. Mahol
On 3/31/09, Maciej Milewski m...@dat.pl wrote:
 Tuesday 31 March 2009 12:15:33 Paul B. Mahol napisał(a):
 On 3/31/09, Thomas Dickey dic...@radix.net wrote:
  On Tue, Mar 31, 2009 at 11:36:32AM +0200, Paul B. Mahol wrote:
  On 3/31/09, Arek Czereszewski a...@wup-katowice.pl wrote:
   Hi,
  
   I have php application in UTF-8 on server
   (in files are 4 languages: PL, SK, CZ and EN).
  
   Is there any chance to edit this files on console?
   Or should I edit files in Linux/Mac/Win editor with
   UTF support and upload then to server?
 
  You can edit them inside vim, but they will not be
  displayed correctly.
 
  That might be a configuration issue rather than the program.
  (EN in particular ;-)

 Generally speaking FreeBSD console doesnt support UTF-8. So even if
 program (in this case vim) supports UTF-8 it will not work.
 What about editing with vim and setting manualy fileencoding=utf8?
 Next time you open this file vim should know that it is utf8 file or am I
 wrong?

That questions is for vim list. And utf-8 support in vim is very well
documented.

-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Mel Flynn
On Tuesday 31 March 2009 12:48:19 Maciej Milewski wrote:
 Tuesday 31 March 2009 12:15:33 Paul B. Mahol napisał(a):
  On 3/31/09, Thomas Dickey dic...@radix.net wrote:
   On Tue, Mar 31, 2009 at 11:36:32AM +0200, Paul B. Mahol wrote:
   On 3/31/09, Arek Czereszewski a...@wup-katowice.pl wrote:
Hi,
   
I have php application in UTF-8 on server
(in files are 4 languages: PL, SK, CZ and EN).
   
Is there any chance to edit this files on console?
Or should I edit files in Linux/Mac/Win editor with
UTF support and upload then to server?
  
   You can edit them inside vim, but they will not be
   displayed correctly.
  
   That might be a configuration issue rather than the program.
   (EN in particular ;-)
 
  Generally speaking FreeBSD console doesnt support UTF-8. So even if
  program (in this case vim) supports UTF-8 it will not work.

 What about editing with vim and setting manualy fileencoding=utf8?
 Next time you open this file vim should know that it is utf8 file or am I
 wrong?

To be absolutely clear:
the FreeBSD console does not support UTF-8, so if you're sitting at the box it 
will not work. For one there is no font for unicode, for two, the tty code 
does at present not know how to translate the characters into screen output 
even if there was a font. Work is being done for this, though.

If you're ssh'd into the box using an xterm or variant on your desktop, 
anything is possible as rendering the characters is the client's 
responsibility.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UTF-8 file + console

2009-03-31 Thread Thomas Dickey
On Tue, Mar 31, 2009 at 12:15:33PM +0200, Paul B. Mahol wrote:
 On 3/31/09, Thomas Dickey dic...@radix.net wrote:
  On Tue, Mar 31, 2009 at 11:36:32AM +0200, Paul B. Mahol wrote:
  On 3/31/09, Arek Czereszewski a...@wup-katowice.pl wrote:
   I have php application in UTF-8 on server
   (in files are 4 languages: PL, SK, CZ and EN).
...
  That might be a configuration issue rather than the program.
  (EN in particular ;-)
 
 Generally speaking FreeBSD console doesnt support UTF-8. So even if
 program (in this case vim) supports UTF-8 it will not work.

There's two parts: does the editor knows how to manipulate UTF-8,
and does the terminal display UTF-8.  If the editor knows that the
terminal doesn't display UTF-8, it can choose a representation that
works for the terminal (even if it happens to be FreeBSD's console).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpQfDBDBE3Pg.pgp
Description: PGP signature


Re: UTF-8 file + console

2009-03-31 Thread Arek Czereszewski
Thank you all for replays.
On this moment i think about one from three solutions:
- on workstation editor with utf and scp/sftp support
- on workstation editor with utf and ftp support + ftp
on server
- nfs/samba share.

Patching productive system for utf (I read something about
experimental patches for UTF) it is not good solution.

Regards
Arek
-- 
Arek Czereszewski
arek (at) wup-katowice (dot) pl
UNIX allows me to work smarter, not harder.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


UTF-8 in console

2007-04-04 Thread Nejc Škoberne

Hello,

I am have many FreeBSD 5.x and 6.x servers installed and I have this in my
/etc/profile:

LANG=sl_SI.UTF-8; export LANG
MM_CHARSET=UTF-8; export MM_CHARSET

because I am using UTF-8 encoding with PuTTY. It works with most applications
but not with dialog. For example, I get this when using UTF-8:

lk
x  Options for nrpe2 2.7 x
x lk x
x x  [ ] SSL   SSL support x x
x x  [ ] ARGS  Enable command arguments *POTENTIAL SECURITY RISK*  x x
tqmjqu
x   [  OK  ]   Cancelx
mj

so there are letters l, q, k, x, t, m, j, and u instead of line characters.

How do I fix this? It work's OK with ISO-8859-2 encoding, for example.

Thanks,
Nejc

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UTF-8 in console

2007-04-04 Thread Thomas Dickey
On Thu, Apr 05, 2007 at 12:02:12AM +0200, Nejc ©koberne wrote:
 Hello,
 
 I am have many FreeBSD 5.x and 6.x servers installed and I have this in my
 /etc/profile:
 
 LANG=sl_SI.UTF-8; export LANG
 MM_CHARSET=UTF-8; export MM_CHARSET
 
 because I am using UTF-8 encoding with PuTTY. It works with most 
 applications
 but not with dialog. For example, I get this when using UTF-8:

dialog is probably built/linked with the normal libncurses rather than
libncursesw (and corresponding configure option to use the
wide-character features).  That's one part of the problem.

Another is that PuTTY does not honor VT100-style line-drawing when it's
doing UTF-8.  You can tell ncurses that's the case by setting the
NCURSES_NO_UTF8_ACS environment variable (added 20050312).  Then it'll
use +'s and -'s, etc., to do ASCII line-drawing.  To get nice
line-drawing in PuTTY in UTF-8, you have to use the wide-character
libncursesw.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpOt4bqsJtmE.pgp
Description: PGP signature