LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-30-2005, 08:20 AM   #1
ricky_ds
Member
 
Registered: Aug 2004
Location: Bern, Switzerland
Distribution: Kubuntu, FC, RHEL
Posts: 48
Blog Entries: 2

Rep: Reputation: 17
vi encoding/terminal problem


I'm using vim 6.3.46 on RHEL and I'm having a weird problem displaying a given file.

If I am working directly on the machine, then everything is fine and the file correctly displays. Here's just an excerpt:

Code:
UPDATE kauf set busrname="DF‹ - "||busrname[1,29]
        WHERE auftrnr = $1
          AND vorgang = $3
          AND subnr   = $2
          AND busrname[1,6] != "DF‹ - ";
If I'm logging from Windows on the machine with Putty per ssh, then the output is almost fine, just note the incorrect display of (what I think is) an UTF-8 character (DF√ instead of DF‹)

Code:
UPDATE kauf set busrname="DF√ - "||busrname[1,29]
        WHERE auftrnr = $1
          AND vorgang = $3
          AND subnr   = $2
          AND busrname[1,6] != "DF√ - ";
But where things really go bad, is if I connect, still from windows on the machine with QVT/Term (from http://www.qpc.com) per ssh:

Code:
 - "||busrname[1,29]name="DF√
        WHERE auftrnr = $1
          AND vorgang = $3
          AND subnr   = $2
          - ";busrname[1,6] != "DF√
Note that here the sign √ causes all that follows to be displayed at the beginning of the line, overlapping with what is usually there.

First I thought it was a term problem, that's why I checked with the command ":set" and ":set term=xxxx".

Putty and normal shell:
Code:
  backspace=2         hlsearch            ttyfast             t_Sb=^[[4%dm
  helplang=en         ruler               ttymouse=xterm      t_Sf=^[[3%dm
  history=50          scroll=11           viminfo='20,"50
  fileencoding=latin1
  fileencodings=utf-8,latin1
  formatoptions=tcql
QVT:
Code:
  backspace=2         history=50          ruler               ttyfast
  helplang=en         readonly            scroll=11           viminfo='20,"50
  fileencoding=latin1
  fileencodings=utf-8,latin1
In all of them, the Available builtin terminals are:
Code:
    builtin_riscos
    builtin_amiga
    builtin_beos-ansi
    builtin_ansi
    builtin_pcansi
    builtin_win32
    builtin_vt320
    builtin_vt52
    builtin_xterm
    builtin_iris-ansi
    builtin_debug
    builtin_dumb
:!echo $TERM gives me xterm in putty and the shell, and vt220 in QVT. After changing it with export TERM=xterm the result was still horked. So I don't know if this is really the cause I have to investigate.

Is there anybody who can give me a hint wrt my problem? Thanks a lot in advance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox encoding problem linx win Linux - Software 1 08-08-2005 11:52 PM
Evolution vs NNTP encoding problem syncat Linux - Software 0 07-26-2005 03:45 AM
KDE konsole - Gnome-terminal language encoding or keytab thk33 Linux - Software 3 09-19-2004 03:59 PM
Problem encoding Divx with Dvd::Rip mitchmiller Linux - Software 1 03-07-2004 10:35 PM
Encoding problem serotizm Linux - Newbie 0 10-21-2002 12:48 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration