Skip to content

Em Dash character causes an exception in base64.js #37

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. var Value = base64.encode('Budget – 5 simple steps');
2. the - is actually the EM Dash character
3.

What is the expected output? What do you see instead?
Expected to see: 'QnVkZ2V0IOKAkyA1IHNpbXBsZSBzdGVwcw==' (according to 
http://www.base64encode.org/)
Instead received an exception and the script stopped running

What version of the product are you using? On what operating system?
base64.js, r230, Mar 29, 2010, nickgsuperstar

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Feb 2014 at 4:19

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions