Results 1 to 3 of 3

Thread: problem with: file:inbound-channel-adapter + file:file-to-string-transformer

  1. #1
    Join Date
    Dec 2011
    Posts
    26

    Default problem with: file:inbound-channel-adapter + file:file-to-string-transformer

    Hi everybody!

    I'm using a file:inbound in order to take a txt file which contains a xml in plain text and after I transform it in string. The problem is that the final string has an additional character: '?'

    Code:
    <file:inbound-channel-adapter id="filein" channel="filetoString" directory="${test.path}" filename-regex="FullTest.txt"/>
    	
    <file:file-to-string-transformer id="transftoString" input-channel="filetoString" output-channel="createMessage" charset="UTF-8"/>
    I think that maybe is because of the xml header:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <this:data
    Any suggestion? thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Atlanta
    Posts
    123

    Default

    Hi,

    Your problem may indicate file encoding issues. What is the actual encoding of your input files? (Are they really encoded in UTF?) In order to help you better - is there a way that you could post an example project with sample input files to demonstrate the issue?

    Thanks!

    Cheers,

    Gunnar
    Gunnar Hillert
    SpringSource/VMWare, Spring Integration team
    SpringSource Team - Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/ghillert
    http://blog.hillert.com/
    http://blog.springsource.com/author/ghillert/

  3. #3
    Join Date
    Dec 2011
    Posts
    26

    Default

    I have changed the encode from STS to cp1252 and is working now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •