VIM Plugin VJDE, Ruby Error: invalid byte sequence in UTF-8

Hello
I'm trying to install the vim VJDE Plugin for java syntax highlighting.
wget tarball
tar xvzf tarball
makepkg -s
pacman -U ...
No Problems here.
When i run vim foo.java it shows me this mesage:
Error detected while processing /usr/share/vim/vim73/plugin/vjde/vjde_template.vim:
line   18:
ArgumentError: invalid byte sequence in UTF-8
Code on line 18:
ruby Vjde::VjdeTemplateManager.load_all(VIM::evaluate('g:vjde_install_path'))
So.. I'm no ruby programmer but i dont see any non UTF-8 Character in it.
When i comment it out, the error does not show.
Couldn't google anything about it. Maybe it's just a bug in the current version of Ruby.
Would be nice if anyone can help me.
Regards, Archdove
Last edited by Archdove (2011-09-23 18:21:35)

Hi,
It's a encoding problem. I wrote about this problem to author. He uses en utf8 locale, but some files has unrecognized encoding. Enconv can't convert to utf8.
$ find -type f -a ! -name readtags -a ! -name '*.class' -a ! -name '*.jar' | xargs enconv
enconv: Cannot convert `./src/previewwindow.cpp' from unknown encoding
enconv: Cannot convert `./src/wspawn.cpp' from unknown encoding
enconv: Cannot convert `./src/tipswnd.lex' from unknown encoding
enconv: Cannot convert `./src/vjde/completion/ClassInfo.java' from unknown encoding
enconv: Cannot convert `./src/vjde/completion/Completion.java' from unknown encoding
enconv: Cannot convert `./src/tipswnd.c' from unknown encoding
enconv: Cannot convert `./plugin/vjde/vjde_java_completion.vim' from unknown encoding
enconv: Cannot convert `./plugin/vjde/project.vim' from unknown encoding
enconv: Cannot convert `./plugin/vjde/vjde_tag_loader.vim' from unknown encoding
enconv: Cannot convert `./plugin/vjde/tlds/java.vjde' from unknown encoding
I'm looking how to convert to utf8. Try open file e.g. src/previewwindow.cpp in vim with fencs=gbk,utf8,default. Vim detect fenc cp936. In line 644 are chinese characters(?): /* 另一个回调函数 */
Any idea?

Similar Messages

  • Ignore invalid byte sequence

    I am reading in XML in my Java program using the Xerces library and am receiving an error "Invalid byte 2 of 2-byte UTF-8 sequence". It is caused because there is a two-byte sequence in the file "C2 3F" which is not a valid UTF-8 encoding. Is there any way to get the parser to ignore these invalid sequences? The XML files come from an external source so, aside from writing my own filtering routines to detect and fix errors like this, I cannot modify the content. Removing one or both of the bytes, or replacing them with valid characters, would work fine.

    FYI, this is the solution:
    private Reader prepareInputStreamReader(InputStream inputStream)
    // Strip all invalid UTF-8 sequences from input
    CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder();
    decoder.onUnmappableCharacter(CodingErrorAction.REPLACE);
    decoder.onMalformedInput(CodingErrorAction.REPLACE);
    decoder.replaceWith("?");
    return new InputStreamReader(inputStream, decoder);
    }

  • BW error:  "invalid call sequence for interface when recording changes"

    I am getting the error "invalid call sequence for interface when recording changes" when I try to activate a datasource in BW.  Any ideas on how to resolve this error?
    Thanks.

    I already tried that.  This is what's happening..  When I get this error, if I try again it will activate and gets collected into a transport.  I moved this transport to our QA system.  As soon as I try to execute an infopackage under this datasource in QA, I get the error datasource   xxxxx must be activated.   Before the excecution of the infopackage, the datasource is in "Active version executable".   After I get the error message "datasource must be activated", the datasource in the QA system changes to "Active version not executable".   I am not sure all these issues are related back to the "invalid call sequence" error I am getting when I try to activate the data source.
    I also tried recollecting the transport from our Dev system to QA and it still gives the above errors.
    Any help?
    Thanks.

  • Formal error: Invalid calling sequence for function modules

    Hi All,
    I have developed a function module for FQEVENT 620 Payment: Transfer Line Items for Clearing.
    The clearing works fine.
    After clearing the open items i need to post an FI-CA Document(BAPI : BAPI_CTRACDOCUMENT_CREATE) for each open item(cleared item)
    I have used the bapi : BAPI_CTRACDOCUMENT_CREATE in the same function module that i have developed for FQEVENT 620 Payment: Transfer Line Items for Clearing.Here i am getting an error "Formal error: Invalid calling sequence for function modules".
    So please let me know where i can use this bapi to post fi-ca document.Is there a BAdi or Enhancement Spot where i can use this BAPI or tell me what should i do to overcome this error.
    Regards
    Venkat

    Venkat:
    While I am confused about your business process - creating an open item when clearing one seems strange.  Look into event 0020 which is called after documents are posted - it may present the opportunity to post process additional documents.
    regards,
    bill.

  • Error: Invalid byte 2 of 3-byte UTF-8 sequence

    Hi Experts,
      We have a synchronous scenario from Websphere to PI, where once Websphere sends the request it is been executed by ABAP proxy and gives response with some special characters. But as the xml coding is in UTF-8 only, this is not throwing error in Response Mapping.
      But when it reaches the end system, it is giving this "Invalid byte 2 of 3-byte UTF-8 sequence." " error saying that enocoding to UTF-8 is not done correctly. How can I overcome this situtation. please suggest.
    Thanks,
    Anudeep

    Hi,
    Check the encoding to be used for the data..or else check whether the RFC connections used are set to unicode...
    if possible execute the request in SAP and check what is the output it is generating...if it is proper over there then you need to identify the encoding to be used when it comes to PI..
    HTH
    Rajesh

  • ASDOC error : Invalid byte 2 of 3-byte UTF-8 sequence

    Hi everyone,
    I'm trying to use ASDOC and have some problems.
    1) The first and most anoying one is that I don't have the
    complete documentation generated for MXML files : the files appear
    in the documentation, but the description is empty. I however
    commented them correctly using /** */ in the <mx:Script> tag,
    but none of my methods appear... I just see the Events when
    declared as class metadata.
    2) I'm using Eric Feminella's ASDocAntTask and I experience a
    strange error message : Impossible to open the document, Invalid
    byte 2 of 3-byte UTF-8 sequence. It happens for a whole bunch of
    files in the asdoc/templates directory, including the
    asdoc-util.xsl file. Maybe this is the reason why point 1) appears
    3) The Index html files are not generated... Consequence of
    point 2) I guess
    4) I have a warning message (oddly appearing 4 times) : CSS
    type selectors are not supported in components. I know it's not
    possible to have a link to my CSS file in components. But my file
    declaration is in the <mx:Application> class...
    Thanks for your help, all these errors really put me in
    trouble as I must deliver the documentation soon...
    Thanks
    Edit : the complete list of files impossible to read is the
    following :
    asdoc-util.xsl
    package.xsl
    all-index.xsl
    class-list.xsl
    package-detail.xsl
    class-files.xsl
    Ben

    Hi again !
    I finally found how to (partially) solve my problem !
    In ASDocAntTask, there are two files the user has to fill in
    : the build.xml file and a properties file. In the properties file,
    you define, for example, the name that you want to appear in the
    browser window... And as my project is French, I used a French
    special character é... which messed everything up...
    So finally, I got rid of this problem and solved points 2)
    and 3)
    I have now a great documentation, but still nothing about
    mxml files !
    How can I solve this problem ?

  • SAPCAR error "Illegal byte sequence "

    Hi there
    I am trying to update R3trans and tp programs and ran into this error uncarring the files using sapcar.
    110> SAPCAR -xvf tp_193-20000233.sar
    stderr initialized
    processing archive tp_193-20000233.sar...
    Illegal byte sequence tp_193-20000233.sar
    119> SAPCAR -xvf R3trans_205-20000233.SAR
    stderr initialized
    processing archive R3trans_205-20000233.SAR...
    Illegal byte sequence R3trans_205-20000233.SAR
    I tried downloading the latest sapcar after referring to
    Note 892842 - SAPCAR error: format error in header,
    but had no luck.I would appreciate any help on this.
    Thanks
    Vic

    If you want to upgrade SAPCAR , replace the SAPCAR in exe directory.
    execute the following command
    which SAPCAR 
    this will show you the path.
    For windows , renameing to .zip doesnt help. download the SAPCAR ( the name is same for all OS )  from
    service.sap.com/patches --> Entry by Application Group --> Additional Components --> SAPCAR  then windows.
    if its downloaded to C drive
    c:\ sapcar.exe -xvf  < *.SAR >  , < *.SAR >  is your tp/r3trans
    Thanks
    Prince Jose

  • Invalid byte 2 of 2-byte UTF-8 sequence

    Hi everyone.
    I am trying to schedule a BI Publisher report using the PublicReportService web service.
    When I call the web service, I get the following error
    Invalid byte 2 of 2-byte UTF-8 sequence.
    I think the cause of the error is that one of the parameters has special characters (Ñ). Please look at the parameters section of the XML
    <parameterNameValues>
    <item>
    <name>P_CDEMPCSC</name>
    <multiValuesAllowed>false</multiValuesAllowed>
    <values>
    <string>15</string>
    </values>
    </item>
    <item>
    <name>P_CDPERMES</name>
    <multiValuesAllowed>false</multiValuesAllowed>
    <values>
    <string>01062011</string>
    </values>
    </item>
    <item>
    <name>P_DSEMPCSC</name>
    <multiValuesAllowed>false</multiValuesAllowed>
    <values>
    _<string>DISEÑO Y CONSTRUCCION</string>_
    </values>
    </item>
    </parameterNameValues>
    ¿Am I right about tha cause of the error?
    ¿How could I fix it? There is not an option for me to substitute the Ñ.
    Thans in advance

    Hi again.
    I've found the solution to this issue
    1.- The XML needs this line at the beginning
    '<?xml version="1.0" encoding="ISO-8859-1" ?>'
    If not, it is encoded by default as UTF-8, and apparently that's why some special characters like Ñ and é produce the error
    2.- In case of some parameter has an &, this character needs to be replaced by the expression &amp;.
    Bye.

  • Invalid byte 2 of 3-byte UTF-8 sequence error

    I'm writing a java program that accesses an XML file and do some computation on it. The problem is that the program works on small sample XML files, but when trying to work with big XML files (which was generated by other program) I get "Invalid byte 2 of 3-byte UTF-8 sequence" parsing error. Any tips?

    Hi,
    Check the encoding to be used for the data..or else check whether the RFC connections used are set to unicode...
    if possible execute the request in SAP and check what is the output it is generating...if it is proper over there then you need to identify the encoding to be used when it comes to PI..
    HTH
    Rajesh

  • Java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.

    Hi,
    I see the below error when I try to import bunch of email templates.
    com.waveset.util.WavesetException: ==> java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
    Can any one explain me why is this happenining?
    Thanks,
    Siddiqui

    Hi Siddiqui,
    It looks like u r importing some characters those are not valid UTF-8 character set and some time this type of error comes when u try to import characters like *<,>* so use *& lt;* for < and *>* for >.
    sorry those Characters r not display properly :-(
    Thanx
    Shant
    Edited by: Shant on Jan 18, 2008 6:19 AM
    Edited by: Shant on Jan 18, 2008 6:23 AM

  • UTFDataFormatException, invalid byte 1 (�) of a 6-byte sequence

    Hi
    I am trying to parse xml file using sax parser(xerces-c) . i am not able to fix this error :
    UTFDataFormatException, invalid byte 1 (�) of a 6-byte sequence.
    xml file:
    <?xml version="1.0" ?>
    <!DOCTYPE svc_result SYSTEM "MLP_SVC_RESULT_310.dtd" [
    <!ENTITY % extension SYSTEM "PLS_PZSIR_100.DTD">
    %extension;]>
    ........

    Hi Siddiqui,
    It looks like u r importing some characters those are not valid UTF-8 character set and some time this type of error comes when u try to import characters like *<,>* so use *& lt;* for < and *>* for >.
    sorry those Characters r not display properly :-(
    Thanx
    Shant
    Edited by: Shant on Jan 18, 2008 6:19 AM
    Edited by: Shant on Jan 18, 2008 6:23 AM

  • "Invalid byte 1 of 1-byte UTF-8 sequence" exception trying to display image

    Hi there!
    Last night I updated my project to open the <wellcome-file>. So I put this in my web.xml file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        id="WebApp_ID"
        version="2.5">
    <context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.jspx</param-value>
    </context-param>
    <welcome-file-list>
        <welcome-file>faces/login.jspx</welcome-file>
    </welcome-file-list>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    [...]Now when I type http://localhost:8080/myproject the login.jspx is opened as expected.
    But after this change, exceptions started to shown when images from my template.jspx is loaded (?).
    Here's a piece of my template.jspx:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <jsp:root
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:r="http://richfaces.org/rich"
         xmlns:a4j="http://richfaces.org/a4j"
         version="2.0">
    <f:facet name="controls">
         <h:panelGroup>
              <h:graphicImage
                   value="../imagens/erro.png"
                   id="hidelink" />
         </h:panelGroup>
    </f:facet>
    [...]And here is the exception:
    SEVERE: Error Rendering View[/imagens/erro.png]
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
         at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    [...]And, of course, the image is not displayed.
    The images from pages that uses template.jspx works fine (even the same image that causes the exception).
    Only images from my template.jspx and pages that I use with <ui:include> throws the exception.
    My directory structure:
    web
    |___templates
    |___imagens
    |___pages
    login.jspxI tried with ISO-8859-1 and UTF-8 as encoding and the problem is the same.
    I need some help. Any help.
    If any more info is needed, please just ask me.
    Thank you in advace!
    I'm using:
    JSF 1.2; Facelets 1.1.14; Richfaces 3.3; Tomcat 6, Java 6
    Yoshimit

    I got the same error. It was because my application's .java files were saved as UTF-8 but the .xhtml files were saved as cp1255 encoding. I have also added a filter to set the charset to each response like described [here |http://www.coderanch.com/t/211549/JSF/java/JSF-Character-Sets-UTF-mainly] .
    PS: I had another error after that which was caused by copying the Richfaces xmlns definitions from a PDf provided by Refcardz. The " symbol turend to something that the SAX parser could not process.
    Hope this helps.
    Pavel Myshkin

  • BaseRuntimeException:Invalid byte 1 of 1-byte UTF-8 sequence

    Hi experts,
    I am getting error in MONI as :
    Runtime exception occurred during application mapping com/sap/xi/tf/_MM_MES_TO_SAP_SHIPPING_REQ2_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Invalid byte 1 of 1-byte UTF-8 sequence
    When i checked the payload i found :
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    An invalid character was found in text content. Error processing resource 'file:///C:/Documents and Settings/snayak/Local S...
            <ns0:SalesOrderInformation>
    But when I copy and paste the payload data from note pad and did testing in Messsage mapping, it became successful.
    It is not opening in xml format but it is working in notepad.
    Please advise what to do.
    Thanks,
    Swapnashree

    Hi,
    Stefan is correct. If you are unable to display it, then it is not a valid xml. Based on the error that you provided, the invalid character is located just above the <ns0:SalesOrderInformation>. So you should start from there.
    But when I copy and paste the payload data from note pad and did testing in Messsage mapping, it became successful.
    It is possible that you just selected a part of the payload and pasted it in the mapping, hence it was successful. Pasting the whole payload would more or less give the same error as what you have seen in moni.
    If you can have your input XML validated by XML programs such as XMLSpy or XMLStudio, it would greatly help in troubleshooting your issue.
    Hope this helps,
    Mark

  • 'invalid Key Sequence' error when doing a lookup_ext on a Persistent DS

    I have a pesistent data store that I populate with a query transform.
    After the DF is finished, I call a script to do the Lookup_ext on the DS that sets a global variable.
    I am getting the error:
    70806 <persistent cache table <Temp_3> is being read with an invalid key sequence>
    Any information out there on this problem would be greatly appreciated
    Thanks
    Mike

    I can reproduce this erro, but need to check if its a bug or not
    for the workaround
    - check if the Persistent cache table that you are creating has key defined for it
    - In the lookup call in script, you should use the same key columns in the Condition and in same order
    Pass the Compare value through Varaibles instead of Constants
    for exmple :-
    #declare a global varaible to store the value to compare
    $G_EMP_NO = 7788;
    lookup_ext([PersistentCache..EMP_DATA,'PRE_LOAD_CACHE','MAX'], [EMPNO],[NULL],[EMPNO,'=',$G_EMP_NO]);
    and see if it works for you
    Edited by: Manoj Dhyani on Jan 29, 2009 12:01 AM

  • Invalid byte 2 of 3-byte UTF-8 sequence.

    Hi All
    I have to read a xml file from a given URL, which consists some french characters in it. I am getting
    IOException :Invalid byte 2 of 3-byte UTF-8 sequence Exception.
    The code i am using is.
    SAXBuilder builder = new SAXBuilder();
    Document doc = builder.build(new URL(url));
    Thanks in Advance
    Amit Srivastava

    The original XML may have been coded in UTF-16, but then you have this code:xml.trim().getBytes()which says
    "Take that XML string and convert it to bytes, using my system's default encoding."
    The parser then attempts to parse those bytes, which are encoded in ISO-8859-1 or windows-1252 or some such. Since you didn't declare this fact in the XML's header, the parser assumes the bytes are encoded in UTF-8. When it comes to a sequence of bytes in the code that aren't valid UTF-8 encodings of anything then it complains.
    If you really have to convert the input to bytes then try this:xml.trim().getBytes("UTF-8")

Maybe you are looking for

  • Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?

    Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?. I need the actual default value for a particualr preference. About:config does show some default values but I need the source f

  • P990i Displays White Screen on Startup

    Greetings, I had to restart my P990i as the screen got stuck. Upon restarting I now get a White Screen as display. I am able to hear the Sony Ericsson start up tone. When I dial my number I can hear the phone ringing but the phone is displaying anyth

  • WLS 7.1 - physically deploying war file

    Apologies if this is a missed FAQ but we are deploying a war file through the console and would like the physical directories to be present once deployed so we can read based on a physical path for our props file load and write to a directory within

  • Library Manager or aperture?

    Thank you TD for your previous answer to this question.  However there seems to be an element of doubt as to whether Library Manager would find my lost keywords. I still have the intact iPhoto library in the older computer.  Is there a more reliable

  • OAF - Personalization part of Oracle SOA

    I've been using Oracle personalization as part of the OAF. Is this part of the Oracle SOA? thank you in advance.