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

Problem while converting inpage to unicode without file #1

Open
khurramriaz opened this issue Oct 30, 2020 · 1 comment
Open

Problem while converting inpage to unicode without file #1

khurramriaz opened this issue Oct 30, 2020 · 1 comment

Comments

@khurramriaz
Copy link

khurramriaz commented Oct 30, 2020

Description:
I am trying to convert text without in-page file,

What I'm doing?

  1. I created HTML text area,
  2. pasting in-page text in there.
  3. Assigning that value to a variable
  4. Passing that variable (not in-page file) to inpage2Unicode function and converting.

What I know?
I know if I pass in-page file, data is in binary there is a start and end position so code just work fine in that case. Amazing Result. But I want to convert without uploading or reading file.

What is the Issue?
I am passing string so excluding start and end position function. So start is 0 and end is the string length. But in convert function I didn't make any change and hex values are different as compare to file uploading.

Please help me where i am making mistake? And how convert function is converting to hex I'm confusing in that. Why you are shifting bits? Any help will appreciated,
This is my first post on git error should be acceptable. Thanks.

@khurramriaz
Copy link
Author

Here is my in-page sample data (urdu alphabets alf to ye) in txt file. inpage.txt If you copy content of this file and paste in in-page its showing actual content. But when assigning this to js variable and pass it to convert function result are different.

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

No branches or pull requests

1 participant