Comments (6)
Hey Flowfeeler,
Are you able to provide a failing test case so I can look into this further?
Thanks,
Josh
from linkedin.
I'm having the same problem with some accentuated characters. For example, the search for "André" gives the following issue:
result = linkedin.search(:keywords => 'André', :count => 1)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/uri/generic.rb:512:in check_query': bad component(expected query component): count=1&keywords=André (URI::InvalidComponentError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/uri/generic.rb:526:in
query='
from /Library/Ruby/Gems/1.8/gems/linkedin-0.1.7/lib/linked_in/client.rb:190:in to_uri' from /Library/Ruby/Gems/1.8/gems/linkedin-0.1.7/lib/linked_in/client.rb:103:in
search'
from linkedin_test.rb:10
from linkedin.
CGI.escape seems to solve this issue:
result = linkedin.search(:keywords => CGI.escape('André'), :count => 1)
I think a good solution would be add this escaping automatically in the gem instead of in the parameters. What do you think?
Regards,
Renato
from linkedin.
Hi Renatosnrg,
I have just pushed a fix to master which uses URI.escape which fixes the utf8 issues you were having.
If there is a good reason to change to CGI vs URI, please let me know and I will look into it.
I hope to release a new patch version soon, until then please feel free to use the git repo in your Gemfile.
Thanks,
Josh
from linkedin.
Thanks a lot!
Renato
from linkedin.
Sorry about that, I have been out traveling for a while, I had monkey patched that on my side but forgot about it. I'm glad it has been fixed :)
from linkedin.
Related Issues (20)
- Segmentation fault when used in parallel threads HOT 8
- Linkedin Group Share HOT 2
- Normal Pagination
- LinkedIn API changes HOT 1
- Documentation Links No Longer Work HOT 5
- token_secret is not passed HOT 2
- LinkedIn API returns Positions without Title HOT 6
- Does the API has stopped providing Connections HOT 3
- (400): 'submitted-url' and 'media-key' can not be both empty HOT 6
- LinkedIn API session issue HOT 1
- List of all companies where authenticated user is the Admin HOT 1
- Setting the linkedin pin at the run time HOT 1
- Unable to find client.profile for authenticated user HOT 3
- NameError: uninitialized constant Api::QueryHelpers HOT 1
- Is this gem still maintained? HOT 1
- Application does not respond after sharing content to company page HOT 1
- UnauthorizedError in callback HOT 2
- problems with the access token HOT 2
- LinkedIn v1 API deprecation HOT 11
- Incorrect tag for v1.1.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkedin.