Skip to content

Lexer error for non-English alphabet chararcters #7456

Closed

Description

@mortensoby
  • *I'm submitting a ... *
    [x ] bug report

I have a datamodel where Danish characters are used e.g. 'ø'. This works fine in my components. When I try to bind to a model entity which contains a Danish character, I get an error though.

Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ] ("
    <div>
      <h2>Hello {{name}}</h2>
      <input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
    </div>
  "): App@3:13
Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ=$event] ("
    <div>
      <h2>Hello {{name}}</h2>
      <input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
    </div>
  "): App@3:13
    at new BaseException (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:7385:21)
    at TemplateParser.parse (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24039:15)
    at https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24744:54
    at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1243:24)
    at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:13456:32)
    at zoneBoundFn (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1220:26)
    at lib$es6$promise$$internal$$tryCatch (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:468:17)
    at lib$es6$promise$$internal$$invokeCallback (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:480:18)
    at lib$es6$promise$$internal$$publish (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:451:12)
    at https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:123:10

I have reproduced the problem here:
http://plnkr.co/edit/KEC0GQFYuotdnhP3XxAV?p=info

  • Angular version: 2.0.0-beta.8
  • Browser: [all ]
  • Language: [all]

Activity

  1. zoechi commented on Mar 7, 2016

    @zoechi
    Contributor

    Looks like #6061 but that should be fixed since a while.

  2. mortensoby commented on Mar 7, 2016

    @mortensoby
    Author

    @zoechi, I have linked to a plunk, which illustrates that the problem still exists.

  3. penmark commented on Apr 14, 2016

    @penmark

    Still the same with beta 15

  4. pkozlowski-opensource commented on Jun 4, 2016

    @pkozlowski-opensource
    Member

    Duplicate of #517

  5. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions