[teiid-issues] [JBoss JIRA] (TEIID-4340) add encoding as "UTF-8-BOM" in the file translator override property
Steven Hawkins (JIRA)
issues at jboss.org
Wed Aug 22 20:37:00 EDT 2018
[ https://issues.jboss.org/browse/TEIID-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622920#comment-13622920 ]
Steven Hawkins commented on TEIID-4340:
---------------------------------------
>From the link:
The Unicode Standard permits the BOM in UTF-8,[3] but does not require or recommend its use.[4] Byte order has no meaning in UTF-8,[5] so its only use in UTF-8 is to signal at the start that the text stream is encoded in UTF-8, or that it was converted to UTF-8 from a stream that contained an optional BOM.
You are looking for compatibility with some older windows or other tools that expect a BOM correct?
As for a workaround there aren't great options. A udf would be the best bet to take a file and prepend the BOM.
> add encoding as "UTF-8-BOM" in the file translator override property
> --------------------------------------------------------------------
>
> Key: TEIID-4340
> URL: https://issues.jboss.org/browse/TEIID-4340
> Project: Teiid
> Issue Type: Feature Request
> Components: Misc. Connectors
> Affects Versions: 8.7.8.6_2
> Reporter: Debbie Steigner
> Priority: Trivial
> Fix For: Open To Community
>
>
> it will be good if teiid supports Encoding to "UTF-8-BOM" since other middleware technologies supports similar to this and also even editor such as Notepad++ supports to convert / save file as "UTF-8-BOM".
> Currently we have added Translator override for File to include "Encoding Property to UTF-8" so similarly we should be able to set it to "UTF-8-BOM" , instead of writing code manually to add BOM to generate a file.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the teiid-issues
mailing list