Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
UFT-8 and illegal sequences
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Patrick Texier  
View profile  
 More options May 6 2008, 6:27 am
From: Patrick Texier <p.tex...@genindre.org>
Date: Tue, 06 May 2008 12:27:23 +0200
Local: Tues, May 6 2008 6:27 am
Subject: UFT-8 and illegal sequences
I'm Using gVim 7.1.293 (huge with multibyte_ime/dyn, iconv/dyn...) on
Windows.

I'm using the following _vimrc.
====== _vimrc ==========
if has("multi_byte")
        if &enc !~? '^u'
                if &tenc == ""
                        let &tenc = &enc
                endif
                set enc=utf-8
        endif
        set fencs=ucs-bom,utf-8,latin1
        lan fr_FR.UTF-8
endif " }}}
==========================

I want call gVim from an external program (LifeLines) with a UTF-8 BOM
temporary file but a can have illegal UFT-8 like :

1 FAMS @F16797@ {{(F16797) 1h,1w,0ch, B de Talleyrand-PÃ m. A. Morel }}
                                                       !
                                  é without 2nd byte --+
I get :

enc=uft-8
fenc=latin1 (and not utf-8)

I want to force fenc to uft-8 but the following calling command doesn't
work :

c:\vim\vim71\gvim.exe -c"++enc=utf-8" -f
c:\vim\vim71\gvim.exe -c"set fencs=utf-8" -f

0 @I41085@ INDI
1 NAME Boson /de Talleyrand-Périgord/
--
 Patrick Texier

 vim:syntax=mail:ai:ts=4:et:tw=72


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Mechelynck  
View profile  
 More options May 6 2008, 6:55 am
From: Tony Mechelynck <antoine.mechely...@gmail.com>
Date: Tue, 06 May 2008 12:55:10 +0200
Local: Tues, May 6 2008 6:55 am
Subject: Re: UFT-8 and illegal sequences
On 06/05/08 12:27, Patrick Texier wrote:

'fileencodings', no matter what you set it to, will never detect a file
as UTF-8 if it contains invalid UTF-8 sequences.

To force opening as UTF-8, try (after setting 'enc' to utf-8, see
http://vim.sourceforge.net/scripts/script.php?script_id=789 )

        :e ++enc=utf-8 foobar.txt

(replacing, of course, foobar.txt by the filename), see ":help ++opt".

WARNING: Any invalid bytes will be replaced by ? (question mark, 0x3F).

Best regards,
Tony.
--
        Overheard in a bar:
Man: "Hey, Baby, I'd sure like to get in your pants!"
Woman: "No, thanks, I've already got one ass-hole in there now."


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick Texier  
View profile  
 More options May 6 2008, 10:01 am
From: Patrick Texier <p.tex...@genindre.org>
Date: Tue, 06 May 2008 16:01:48 +0200
Local: Tues, May 6 2008 10:01 am
Subject: Re: UFT-8 and illegal sequences
Le Tue, 06 May 2008 12:55:10 +0200, Tony Mechelynck a écrit dans le
message <4820390E.3000...@gmail.com> :

> To force opening as UTF-8, try (after setting 'enc' to utf-8, see
> http://vim.sourceforge.net/scripts/script.php?script_id=789 )

>    :e ++enc=utf-8 foobar.txt

> (replacing, of course, foobar.txt by the filename), see ":help ++opt".

Thanks Tony. I'm using

:e! ++enc=uft-8

> WARNING: Any invalid bytes will be replaced by ? (question mark, 0x3F).

All invalid bytes are in comments between {{ ... }} and not written in
database.

1 FAMS @F16797@ {{(F16797) 1h,1w,0ch, B de Talleyrand-PÃ m. A. Morel }}

I will report (for fix) this LifeLines bug.
--
Patrick Texier,
Frulon, 36190 Orsennes, France (46°31'N, 01°41'E)
<http://www.genindre.org>
<http://www.gpsql.org> <http://www.footsql.org>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »