Export to Text File - UTF-8 Without BOM (Byte-Order-Mark)

Stimulsoft Reports.WEB discussion
Post Reply
careli
Posts: 10
Joined: Tue Mar 29, 2011 9:18 am
Location: Brasil

Export to Text File - UTF-8 Without BOM (Byte-Order-Mark)

Post by careli »

Hi,

I need to export the report contents to a text file in UTF-8 format without BOM (Byte-order-Mark) (http://www.unicode.org/faq/utf_bom.html#BOM) to import it in another system. Is there any way to do this? Or export using UTF-8 always comes with the BOM. I am using the 2014.1.1900.0 version.

Thanks,
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to Text File - UTF-8 Without BOM (Byte-Order-Mark

Post by HighAley »

Hello.

The export to text is always exported with BOM.
If you export report in code you could remove three first bytes from exported file.

Thank you.
careli
Posts: 10
Joined: Tue Mar 29, 2011 9:18 am
Location: Brasil

Re: Export to Text File - UTF-8 Without BOM (Byte-Order-Mark

Post by careli »

Thanks Aleksey,

How i export report in code? There is a way to intercept and verify if the export settings is set to UTF-8 and get the text content, remove the bytes and set the response to user? I'm using de webviewerfx in asp.net page.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to Text File - UTF-8 Without BOM (Byte-Order-Mark

Post by HighAley »

Hello.

Could you specify what viewer or designer do you use?
What version?
How do you export the report?

Thank you.
careli
Posts: 10
Joined: Tue Mar 29, 2011 9:18 am
Location: Brasil

Re: Export to Text File - UTF-8 Without BOM (Byte-Order-Mark

Post by careli »

i'm using the version "2014.1.1900.0"

This is the control on asp.net page.

Code: Select all

<cc1:StiWebViewerFx ID="viewerFx" runat="server" Localization="" Height="100%" ThemeName="Silver" Width="100%" />
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to Text File - UTF-8 Without BOM (Byte-Order-Mark

Post by HighAley »

Hello.

Unfortunately, it's impossible to catch exported report in StiWebViewerFx.
There is no any suitable event for this task.
We could try to add static option for you.
Could you send a feature request to support@stimulsoft.com?

Thank you.
Post Reply