Skip to content

ResourceScriptSource uses platform default charset (getScriptAsString) [SPR-6794] #11460

@spring-projects-issues

Description

@spring-projects-issues

Andrew Fink opened SPR-6794 and commented

ResourceScriptSource uses platform default charset (see getScriptAsString).
It is bad practice because script isn't java source file, which will be compiled to Unicode.
Usually developer use Windows for development and linux&Co for production.
So default charset is very different!

ResourceScriptSource should have some property for this or use UTF-8 - the best charset for resources.


Affects: 3.0 GA

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions