gumob / punycodeswift Goto Github PK
View Code? Open in Web Editor NEWPunycodeSwift is a pure Swift library to allows you to encode and decode punycoded strings
License: MIT License
PunycodeSwift is a pure Swift library to allows you to encode and decode punycoded strings
License: MIT License
Hi,
Thanks for this project, very useful.
There's a slight problem in that it generates a warning when used in a project with extensions or frameworks:
:-1: linking against a dylib which is not safe for use in application extensions: /Users/brindy/Projects/DuckDuckGo/iOS/Carthage/Build/iOS/Punycode.framework/Punycode
The solution is to check the "Allow app extension API only" on the target for iOS.
I can submit a PR for this once time allows.
Hi! Thanks a lot for your hard work on this project. I've discovered two interesting behaviours which you probably can be interested in:
.punycodeEncoded
mistransforms goo.gl
into goo.gl-
, while .idnaEncoded
gives correct goo.gl
.idnaEncoded
mistransforms ᎻTТРՏ∶⫻⫻նᏞ․fR
into xn--p1ad93g9a045z2uc92va61370ahkav069eeeapa
while .punycodeEncoded
gives s0ad81gqel44eegaq82fczdkzya41780doa7v
(later is correct according to https://unicode.org/cldr/utility/idna.jsp)The main product is defined as Punnycode
in the Package.swift. This made figuring out how to install it tricky.
The podspec in the repo matches the release version 2.0.0
, however, it looks like it was never published to cocoapods.
Am unable to update to latest version using cocoapods (which I unfortunately am tied to using at the moment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.