nsstring - iOS decode umlaut &$ -
i have example of need decoded:
@"für"
how can decoded nsstring looks like
fūr
i tried number of things including
[@"für" stringbydecodinghtmlentities] > für [@"für" gtm_stringbyunescapingfromhtml] > für but no luck.
thanks!
update based on vikingosegundo's solution
nslog(@"möchte decoded : > %@", [@"möchte" stringbyencodinghtmlentities] ); nslog(@"möchte decoded to: > %@", [@"möchte" stringbydecodinghtmlentities] ); nslog(@"für decoded : > %@", [@"für" stringbyencodinghtmlentities] ); nslog(@"für decoded to: > %@", [@"für" stringbydecodinghtmlentities] ); nslog(@"möchte decoded:%@", [@"möchte" stringbydecodinghtmlentitiescomma] ); nslog(@"für decoded:%@", [@"für" stringbydecodinghtmlentitiescomma] ); möchte decoded : > möchte möchte decoded to: > möchte für decoded : > für für decoded to: > für möchte decoded:möchte für decoded:für note : stringbyencodinghtmlentities https://github.com/mwaterfall/mwfeedparser/tree/master/classes stringbydecodinghtmlentitiescomma vikingosegundo's category.
try
[@"für" stringbydecodinghtmlentities]; or
[@"für" gtm_stringbyunescapingfromhtml]; (note ;)
this category works out missing ;.
Comments
Post a Comment