Comments (2)
Hi @konsumer
You probably want to use something like the emoji module and check if the key value has an emoji in it and if so then demojize
the key value, something like https://stackoverflow.com/a/51007945 and https://gist.github.com/jezdez/0185e35704dbdf3c880f
# You will need to install emoji with pip and then import it in runserver.py
import emoji
# Then around line 219 https://github.com/marians/rebrow/blob/master/runserver.py#L219
if t == "string":
val = r.get(key).decode('utf-8', 'replace')
# Let us say the val was
# val = u'I \u2764 emoji'
def char_is_emoji(character):
return character in emoji.UNICODE_EMOJI
if [c for c in val if char_is_emoji(c)]:
val = emoji.demojize(val)
# Which will result in val
# u'I :red_heart: emoji'
This is just an example but may work for you, in the very least it is somewhere to start.
from rebrow.
I could just strip any utf8 chars outside the ascii range, but It's in my data. I want to keep the emojis. I am just reporting that rebrow freaks on those records.
from rebrow.
Related Issues (18)
- zset view should display scores in sorted order HOT 2
- Internal Server Error 500 when click key
- User confirmation on key deletion
- No authentication mechanism in login HOT 4
- Python3 support HOT 5
- sort the set data
- ascii codec cant decode byte HOT 4
- Feature: "Clear all keys" button
- Can't connect to Rebrow due to some server error HOT 1
- Add a possibility to pass default host and port via Docker environments
- how to set password of redis? HOT 3
- How to set base uri?
- Can't view hash type HOT 4
- cannot search keys HOT 4
- Does it work for redis cluster? HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Detail view for key containing slash in name cannot be opened 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 rebrow.