24,345 questions
0
votes
0
answers
46
views
Pyasn1 enumerated type encodes as hex, how do I get decimal
I'm trying to code the following using pyasn1
From RFC7906
KeyPurpose ::= ENUMERATED {
n-a (0), -- Not Applicable
A (65), -- Operational
B (66), -- Compatible Multiple Key
...
0
votes
1
answer
38
views
Is there a character limit to encoded commands for VBS? [duplicate]
First of all I am a noob in terms of VBS. So of this question does not make sense, please bear with me.
I have created a PowerShell script that I wanted to be launched via .vbs file.
I have ...
0
votes
1
answer
129
views
GNU x86 assembler wrong jump encoding?
I create a file named "test.s" with the content "jmp -2". Then I execute "as --32 -o test.o test.s" and "objdump -D test.o".
(I don't want to discuss here that ...
0
votes
1
answer
144
views
How to set a password encoded with BCrypt (for creation and alter)?
With Spring Boot Client it is possible to use Bcrypt to encode a password as follows:
$ ./spring encodepassword superman
{bcrypt}$2a$10$3bQEwIsu2SxDxq1xafag6uH5C3TqacyI2xtQcxJqK9xyJrxgTUPkO
Therefore ...
-3
votes
1
answer
100
views
What characters or encoding is replacing spaces in datetime format?
I am trying different cultures in spanish language and testing some latin and south american cultures.
When using "es-MX" culture the console shows me correctly the date, but when using &...
0
votes
0
answers
163
views
What is the correct way to encode vCard data for QR codes (with line breaks in notes field)?
I'm trying to generate a QR code that contains contact information in vCard format with a multi-line note field. The QR code can be scanned by android and apple devices and the user can create a ...
-1
votes
1
answer
92
views
Encoding and decoding text with special characters (àâäèéêë)
I am trying to encode the text in Angular :
let encodedText = window.btoa("demoé"); //ZGVtb+k=
When trying to decode the same text in C#, the conversion is not happening properly:
string ...
1
vote
0
answers
100
views
Laravel 11 how to configure email encoding?
I'm sending emails from Laravel 11 app via SMTP (SendGrid) and viewing them in Gmail.
My HTML email has correct encoding configured:
<meta http-equiv="Content-Type" content="text/...
0
votes
0
answers
36
views
Encoding of log messages
Encoding of log messages
Why is this happening?
How to fix it?
Is it related to the language (Russian, English)?
Result
Steps
----------
Version 9.0
Application Mode Desktop
Commit
Python Version 3....
0
votes
1
answer
133
views
In IntelliJ IDEA Ultimate, when creating a new project, the default encoding for properties files is ISO-8859-1. Can I change this?
Why does the default encoding for properties files revert to ISO-8859-1 when I create a new project (e.g., Java, Spring Boot), even after I change the default encoding set to UTF-8?"
Next time, ...
-2
votes
1
answer
85
views
How do I encode a JavaScript file included in HTML? - I get `…` rather than `…`
Attempt:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=...
-1
votes
2
answers
141
views
FastAPI or sqlachemy error encoding in python [closed]
I've made a website with sqlachemy, fastAPI and postgresql in python.
The error is raised when I try to login as a user.
For information, I get the password and the email from an HTML/JS form and my ...
1
vote
0
answers
81
views
Encoding problem with x264 and not divisible by 4 resolutions
I'm encoding frames using H264 from BRGA to Yuv420p with high preset. It works fine with most resolutions, but images on 1366x768 are heavily distorted. So far, I've found that if width or height is ...
0
votes
2
answers
160
views
Loading Json file in to Python "UnicodeDecodeError ... invalid continuation byte"
I am new to Python/Json. My end goal is to load a json file. From the json file info I want to get it into a database.
My thought is to bring the json file in to python and save it as a dictionary.(I'...
-3
votes
1
answer
118
views
When a character in a web page is copied (using CTRL+C) from within a browser, what gets stored in the clipboard: the byte sequence or character code?
Let's say you're on Windows 11 (version 24H2) and using Chrome (version 132). Now, let's say you have a web page open in Chrome and you copy (using Ctrl+C) the following character to the clipboard:
Ϟ
...
0
votes
2
answers
70
views
Why doesn't the following video file playback in Safari?
This video plays back correctly in MacOS Preview, but fails to playback in Safari (iOS + MacOS). Why?
<video src="https://lt.harding.dev/pictrs/image/88aaf722-b9d5-4e72-88c4-63e5e9a1bc42.mp4" ...
1
vote
1
answer
100
views
Problem with decoding LZ77 algorithm in c [closed]
I am trying to implement LZ77 algorithm(for small data) written in c. I get compression but I can't check it because decoding is wrong. I don't know what's the problem.
Here's the code
#include <...
0
votes
1
answer
135
views
What is the encoding used by `String.fromCharCode`?
I'm using btoa to encode a Uint8Array to a base 64 string. And I hit a strange case. This works:
export function toBase64(data: Uint8Array): string {
return btoa(String.fromCharCode(...data))
}
...
2
votes
0
answers
166
views
Windows's AllocConsole() doesn't allow printing UTF-16 encoded strings
I've been struggling on this problem for the past few hours and I think it's driving me insane, so I thought I'd ask here.
I've been working on a Windows application. It needs to open a window so it's ...
2
votes
1
answer
88
views
How to get the value of a key which contains unicode code point in a JSON?
I'm trying to build a program that extract data from a JSON and put it into a custom struct. The JSON contains keys like "foo\u00a0", so I can't just use Unmarshal. I tried to use struct ...
0
votes
3
answers
679
views
Remove BOM from UTF 8 using cmd
I need to remove BOM using cmd file from MyFile.txt. The file is located here.
| Out-File -encoding utf8 '%CD%\MyFile.txt'
I need it to be removed using only one cmd, that is, in the next lines. I ...
4
votes
1
answer
162
views
Emoji literal vs emoji unicode-escaped
Why there is a difference in how an emoji is displayed in JavaFX depending on if you're using a unicode escaping or not?
var button = new Button("Toggle Pane >\u2699< >⚙️<"); - ...
0
votes
0
answers
105
views
Python: weird characters in extract_message
I use extract_message from pypi.org/project/extract-msg package to extract outlook messages. It works well until this outlook file causes the error message. I found out that the problem is that the ...
1
vote
1
answer
49
views
Encoding issue ISO-charset vs utf-8 [duplicate]
When I input data such as : Œ, œ, Ÿ, … , €, ≤, ≥, ∞, ≈, ≠, – , — , ‐ , ‑ , ‹ ›, “ ”, ‘ ’
And then try to access data from the $_REQUEST['some_value'] I get this as my output
¼, ½, ¾, … ,...
0
votes
0
answers
756
views
Try enable Nvidia GPU accelaration for chromium's video encoding
I build the latest Chromium 133, and tring enable Nvidia (3060 / 3090) hardware encoding.
./chrome --enable-features=AcceleratedVideoDecodeLinuxZeroCopyGL,AcceleratedVideoDecodeLinuxGL,...