Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Using alternative encodings for specific Catalyst actions

by Anonymous Monk
on Oct 31, 2011 at 14:40 UTC ( [id://934893]=note: print w/replies, xml ) Need Help??


in reply to Using alternative encodings for specific Catalyst actions

Does anyone have any bright ideas on how to skip the Unicode::Encoding plugin's charset validation on parameters for an individual action without actually editing Unicode::Encoding itself, or is that my only option?

Looking at the source, yes, subclassing is your only option

Quickest way, override sub _handle_param_unicode_decoding to skip decoding based on some variable (say local $CatMyPlugUnicodeEncoding::DONT=1; )

The proper way requires more knowledge than I have about moose/catalyst introspection, sub prototypes , etc ... basically, where/how to configure this as a method option

Replies are listed 'Best First'.
Re: Using alternative encodings for specific Catalyst actions
by JohannShunt (Novice) on Oct 31, 2011 at 16:51 UTC

    Thanks for that - I've done as you suggested and subclassed it, and that works fine as a patch for now. Hopefully the callbacks from the 3rd party provider will get more intelligent on encodings. Would be nice if there was a neat way of being a little less strict in Catalyst itself though.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://934893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found