Geekswithblogs.net
HOME
ARCHIVES
CONTACT
LOGIN
El Grego
BizTalk blog
News
My Stats
Posts - 28
Comments - 32
Trackbacks - 55
Twitter
gvdwiele
Damn You Auto Correct Reveals 9 Funniest Texts of the Year
http://t.co/NKIzQnP3
about 68 days ago
gvdwiele
Researcher's Video Shows Secret Software on Millions of Phones Logging Everything
http://t.co/YAmDNYqw
about 73 days ago
gvdwiele
http://t.co/uySVzfgi
This will change everything, fingers crossed...
about 104 days ago
gvdwiele
http://t.co/PWrjFatX
about 105 days ago
gvdwiele
RT
@cultofmac
: New post: What’s So Great About Siri?
http://t.co/1KZkfom5
about 126 days ago
gvdwiele
@hhariri
1 time only so far. Unrelated but very important if you are on Lion:
http://t.co/4vObneV
Helped a lot performance wise...
about 186 days ago
gvdwiele
Emergency exit
http://t.co/ttofCza
about 289 days ago
gvdwiele
Listen
#SoundCloud
:
http://snd.sc/fSI3rL.
now!
about 345 days ago
gvdwiele
@tomasrestrepo
again :)
about 360 days ago
gvdwiele
My custom XLANG parser in action: belanbiz2009
http://skit.ch/brnw
real automated unittesting for orchestrations a step closer :)
about 389 days ago
Tag Cloud
WCF
WPF
more tags...
Recent Comments
Ok, but you did not answer how to solve the proble...
by Zsanett
Hi,Could you please share the code for the custom ...
by harry
is there an updated version of your adapter for BT...
by Anthony
Had a static WCF (basic) sendport and used a pipel...
by Frank Driesens
The GetReference method shows the related document...
by Dipesh A.
Recent Posts
WCF send port behavior
RESTful Enterprise Development
CharacterTranscoder pipeline component on github.com
Question marks in your flatfile output CONTINUED
Question marks in your flatfile output?
Archives
February, 2010 (1)
December, 2009 (1)
September, 2009 (1)
August, 2009 (2)
July, 2009 (1)
June, 2009 (2)
May, 2009 (2)
February, 2009 (1)
December, 2008 (1)
September, 2005 (2)
April, 2005 (1)
March, 2005 (2)
February, 2005 (1)
November, 2004 (4)
October, 2004 (2)
September, 2004 (4)
Post Categories
BizTalk - EAI - B2B
Monday, August 03, 2009
Question marks in your flatfile output?
Or how to fix a bug while introducing another one that's a lot nastier. Let's start by describing the original bug: the BizTalk flatfile assembler has issues with custom target (output) encodings.
When compiling a custom pipeline with the FF assembler and configuring the 'target charset' in the pipeline designer everything works as expected and you will get your messages in the desired encoding.
When you want to dynamically control the encoding, according to the docs, you should also be able to do this by writing the
XMLNORM.TargetCharSet
property onto the message context.
In my case the desired output was 'Windows-1252'.
I was able to verify that this technique indeed works using a default XmlTransmit assembler pipeline.
With a custom FF assembling pipeline though I got a question mark in the flatfile output for every special character.
Since the only differentiator being the pipeline I am quite confident that it's a FFASM assembler bug.
Now to come to the second problem: apparently this bug was already discovered over
a year ago
and I guess it was never reported to Microsoft (since it is still not fixed in BTS 2009, the RC I checked).
It might be a regression since people reported that it only happens from version 2006 R2.
Instead, the author decided the shortest path to success was to develop a
custom encoding pipeline component
that takes care of the output encoding. The issue showed up a few more times since then and it looks like other people were
inspired
by his workaround.
Now take a good
look again
at how the author implemented the custom encoding. There is something terribly wrong with it.
HINT: the input encoding is UTF-8, a variable byte length encoding. Inside the loop a fixed number of bytes is read from the input. Got it?
Share This Post:
Posted On
Monday, August 03, 2009 4:54 AM
|
Feedback (1)
Filed Under [
BizTalk - EAI - B2B
]