You are here: Foswiki>Tasks Web>Item10489 (06 Jul 2015, GeorgeClark)Edit Attach

Item10489: Meta and Store API's make it extremely hard to open a UTF16 attachment and process it.

pencil
Priority: Urgent
Current State: No Action Required
Released In: n/a
Target Release: major
Applies To: Engine
Component: FoswikiFunc, FoswikiMeta, FoswikiStore, I18N, Unicode
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
I was writing ImportPlugin, and the file I'mworking on is a UTF16 windows file

open(my $fh, '<:raw:encoding(UTF16-LE):crlf:utf8', 'canvas10mar2011.csv' ); appears to be needed, and the store filters all that out.

-- SvenDowideit - 15 Mar 2011

I assume you were using saveAttachment. If you use streams, then you have complete control over the IO layers.

-- Main.CrawfordCurrie - 17 May 2015 - 11:10
 

ItemTemplate edit

Summary Meta and Store API's make it extremely hard to open a UTF16 attachment and process it.
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component FoswikiFunc, FoswikiMeta, FoswikiStore, I18N, Unicode
Priority Urgent
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease major
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r5 - 06 Jul 2015, GeorgeClark - This page was cached on 22 Nov 2020 - 16:22.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy