Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 58

tompos
Veteran developer
Profile
Posts: 77
Reg: Oct 19, 2013
Würzburg
6,870
10/19/17 01:31 PM (1 month ago)

iOS Unicode problem in BT4 (solved :-) )

I just looked into the BT source code to solve my unicode problem: My app is handling utf8 characters fine... unless they are given as text input in my BT control panel. This problem was not present in BT3 source code.

Solution... the problem is in "BT_loading.m"

Just replace
response = [NSString stringWithContentsOfURL:escapedURL encoding:NSASCIIStringEncoding error:&error];

with
response = [NSString stringWithContentsOfURL:escapedURL encoding:NSUTF8StringEncoding error:&error];

Happy coding
Thomas
 
SmugWimp
Smugger than thou...
Profile
Posts: 6251
Reg: Nov 07, 2012
Tamuning, GU
80,760
like
10/19/17 05:22 PM (1 month ago)
I've been updating BTv3 projects (just more convenient), but I'm adding this to my notes. Thanks Thomas!

Cheers!

-- Smug
 
Calypso Kid
Aspiring developer
Profile
Posts: 735
Reg: Mar 09, 2012
Upstate New Yor...
17,750
like
10/19/17 06:54 PM (1 month ago)
Thanks Thomas

Dave
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.