-
Notifications
You must be signed in to change notification settings - Fork 284
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
Unicode to ASCII conversion issues (issues within Needle) #80
Comments
Yes, I was experiencing some issues as well. Can you please confirm you are using the latest version pulled from |
ok so interestingly I just pulled the latest develop code from the mwrlabs repository and I got an error somewhere else, after selecting the discount bank application in
I have also replicated the issue on another device (iPhone 6) so it doesn't seem to be a device specific problem. The error is basically identical. |
ok, I reverted the commits related to "[FIX] Invalid characters when parsing plist files". |
Reverting the changes fixed the issue. |
Hi @marco-lancini, please can this issue be reopened as it occurs again following the conversion to bplist. |
plist parsing errors might be because of this: |
Hi @marco-lancini, I have dug into this a little more and discovered the following. Unfortunately, it seems I have misdiagnosed this issue due to my inexperience with python. The binary name in this app has Hebrew characters in it. Since we are using python 2, all string literals are assumed to be ascii. This means, if we try and do something like The ways I have seen to fix this are to append a "u" to every string literal in use or to add |
@tghosth, you might want to have a look at this as well: #106 (comment) |
Hi @marco-lancini, I had a quick look at #106 (comment) but that seems to be a separate problem. Do you have any thoughts on how we can fix this unicode issue? What if we added |
Ok I finally had the time to get a proper look: you're right that's a different issue. Regarding the unicode issue, as you said adding What about treating (forcing) just the content of plist files as unicode? |
I cannot remember if there were other places where I was having unicode issues but plists would be a good place to start, I will try and look adding this when I get some time :) |
Just an update that I have looked at this a little more and it is really a pervasive problem wherever there are non-ascii characters. Unfortunately, just treating plists as unicode won't help. I have prepared a branch which adds If you can do testing with it, that would be great. This is an example of an app which won't work without the unicode support. In the meantime, I also want to do some more testing to make sure it doesn't break other stuff before I open a PR. |
It appears there are two issues regarding Unicode. One relates to processing within needle as shown here in this example I think this type of issue needs to be fixed by adding The second issue is within paramiko which seems to be the cause of the initial issue and I have opened a new issue to discuss this #118. |
Still having this issue with the current release (Needle v1.3.2 [mwr.to/needle])!
|
I have deleted this comment and opened a new issue with a better description here as this issue is now focused on a different problem, see here.
The text was updated successfully, but these errors were encountered: