Skip to content

Unable to add charset=UTF8 to addFormat() #16

@neokoenig

Description

@neokoenig

Returned Javascript rendered via

#pageReplaceHTML(selector=".mySelector", content=myContent)# 

does not respect UTF8 encoding.

If you add

;charset=UTF-8

to:

<cfset addFormat(extension="js", mimeType="text/javascript")>

(I.e)

<cfset addFormat(extension="js", mimeType="text/javascript;charset=UTF-8")>

The plugin breaks (specifically, it seems to give up looking for /views/bar/foo.js.cfm, and instead tries to load /views/bar/foo.cfm

Full code example of the context I'm using it in can be found here:
http://www.oxalto.co.uk/2012/06/creating-an-ajax-mysql-full-text-search-in-cfwheels/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions