Skip to content

Could Parse Platform support unicode field name #5156

Closed
@nuxwork

Description

@nuxwork

I found the Parse Platform not supported unicode field name, but javascript and mongodb supported, I review the code and found regex of the key is only supported english alphabet.

    for (var key in attrs) {
      if (!/^[A-Za-z][0-9A-Za-z_]*$/.test(key)) {
        return new _ParseError.default(_ParseError.default.INVALID_KEY_NAME);
      }
    }

The fact that most modern programming languages support Unicode naming illustrates the real existence of this requirement and the forward-looking nature of programming language developers.

The following is a programming language that supports Chinese naming in English. The link is a sample code for the demo:

C, C++, C#, CoffeeScript, Common Lisp, FASM, Go, Haskell, Java, JavaScript, Kotlin, MySQL,Objective-C, Perl, PHP, Python 3, R, Ruby, Scala, Sqlite3, Swfit,

The above is only a test language version that has been verified by the test. Earlier versions and other languages are probably already supported. Unicode strings - Rosetta Code lists more programming languages' support for Unicode, which can be tested one by one.

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