Hi Jan-Herbert!

On Mo, 06 Mai 2013, Jan-Herbert Damm wrote:

> Thank you Erik,
> 
> Erik Christiansen wrote on 06.05.13:
>  
> > When you try ":set fenc ?" in vim, does it show:
> > 
> > fileencoding=utf-8
> Yes, it does and the interaction of vim and mutt is fine
> 
> here is an example:
> 
> cat renders:
> 
> OBST/GEMUESE
> ┌─────────┬───────────┬──────────────┬────────┐
> │Bestnr.  │  Produkt  │  Hersteller  │  Menge │
> │16266    │  Bananen  │    golden    │ 2KG    │
> │21804    │ Zwiebeln  │     xxx      │ 2KG    │
> │16300    │ Zitronen  │     xxx      │ 6‐8ST  │
> │18455    │  Gurken   │     xxx      │ 2ST    │
> │?????    │ weißkohl  │     1ST      │        │
> └─────────┴───────────┴──────────────┴────────┘
> 
> -----
> 
> vim or less:
> 
> OBST/GEMUESE
> ┌─────────┬───────────┬──────────────┬────────┐
> │^[[1mBestnr.  ^[[22m│  ^[[1mProdukt  ^[[22m│  ^[[1mHersteller  ^[[22m│
> ^[[1mMenge ^[[22m│
> │16266    │  Bananen  │    golden    │ 2KG    │
> │21804    │ Zwiebeln  │     xxx      │ 2KG    │
> │16300    │ Zitronen  │     xxx      │ 6‐8ST  │
> │18455    │  Gurken   │     xxx      │ 2ST    │
> │?????    │ weißkohl  │     1ST      │        │
> └─────────┴───────────┴──────────────┴────────┘
> 
> could it be that the interaction with the terminal (gnome-terminal in my case)
> somehow has to do with this?
> 

What you are seeing are ANSI Term sequences, which are usually used to 
color text in the terminal. It might help to explicitly set the TERM 
variable to dumb or vt100 or possibly set the -c parameter. You might 
however need to pipe the input through col -b again.

regards,
Christian
-- 

Reply via email to