Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling UTF-8 encoding #2

Open
JeffersonReisPro opened this issue Apr 6, 2017 · 1 comment
Open

Enabling UTF-8 encoding #2

JeffersonReisPro opened this issue Apr 6, 2017 · 1 comment

Comments

@JeffersonReisPro
Copy link
Owner

What is UTF-8?

In the future you can use any type of character by default in AIML for Unity 3D.

Example:

  • Nihongo (Japanese)
  • French
  • Portuguese
  • Greek
  • Cyrillic

If you need it urgently, my suggestion is:

You should change the regular expression Settings in:

"Assets / ... / config / Settings.xml"

I have not tested but it should work.

@JeffersonReisPro
Copy link
Owner Author

There is a difference in the processing of AIMLs between PC and WEB:

PC:

Adding this code:

<item name="stripperregex" value="[^\p{L}0-9]"/>

Accent words will work.

WEB:

Even without putting the code snippet above, words with an accent will be recognized, though accented letters will not appear.

Note that Settings.xml for Web is one, and Settings.xml for PC is another.

This problem occurs in the script: ChatWindowExampleMobileWeb.cs

In function:

TextAssetToXmlDocumentAIMLFiles ()

On line 81

When text is converted to XML, letters with an accent are not recognized.

At the moment I do not have a solution, but I hope this information is useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant