Skip to content

Problem while converting inpage to unicode without file #1

@khurramriaz

Description

@khurramriaz

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.

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