Category : encoding

I made a code that returns all the Wifi names and passwords in your device. Since my device’s languge is spanish, the cmd output has accent marks and python can’t decode it. I want to know how to eliminate the accet marks or just use a different encoding. import subprocess import re import unicodedata command_output=subprocess.run([‘netsh’,’wlan’,’show’,’profiles’],capture_output=True).stdout.decode() ..

Read more

I made a code that returns all the WiFi names and passwords in your device. Since my device’s language is Spanish, the cmd output has accent marks and python can’t decode it. I want to know how to eliminate the accent marks or just use a different encoding. import subprocess import re import unicodedata command_output=subprocess.run([‘netsh’,’wlan’,’show’,’profiles’],capture_output=True).stdout.decode() ..

Read more

We have binary data stored in an Android application’s SQLite database as a string. We can’t determine what encoding was used (but this is not Base64) and we want to decode data. Can’t paste real data here but it looks like garbage: aQ:/#gE#:28`@G+ Maybe these sources were used https://github.com/zxing/zxing/blob/master/core/src/main/java/com/google/zxing/datamatrix/decoder/DecodedBitStreamParser.java We need to decode data in ..

Read more

I am strugling to create a simple streamlit app to read an open source ods file over the internet. I end up with this code: import streamlit as st import pandas as pd import numpy as np import pandas_ods_reader from pandas_ods_reader import read_ods st.title(‘Lotação de servidores’) url = (‘http://www.transparencia.mpf.mp.br/conteudo/gestao-de-pessoas/quadro-de-servidores/ativo/2021/quadro-de-servidores_2021_Setembro.ods’) df = pd.read_csv(url, encoding=’ISO-8859-1′, header=7, sep=’t’, ..

Read more

The code which shows the e – mail messages: from __future__ import print_function import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request import base64 from apiclient import errors import payload from bs4 import BeautifulSoup messagecount=int(input(" Please write the email message count which wants to be show:")) # If ..

Read more