Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Browsing all 1041 articles
Browse latest View live

Can you provide and example of utl_raw.convert + utl_raw.cast_to_varchar2?

Can somebody please tell me how the utl_raw.convert works with utl_raw.cast_to_varchar2 in Oracle 11g by giving a sample code as i am not able to find an example use case online.ThanksGautam

View Article


Websocket. What type of encoding/compression is this?

I would like to share my experience of using websockets to fetch data. In my project, I've been working with websockets to obtain market state information.import gzipimport ioimport websocketdef...

View Article


Cut a string at byte length: how to identify invalid utf-8 characters?

I need to cut an input string at a certain byte length and discard the rest. Every good answer to such a request involves encoding the string, slicing the required portion, decoding the result and...

View Article

How to cat a UTF-8 (no BOM) file properly/globally in PowerShell? (to another...

Create a file utf8.txt. Ensure the encoding is UTF-8 (no BOM). Set its content to €In cmd.exe:type utf8.txt > out.txtContent of out.txt is €In PowerShell (v4):cat .\utf8.txt > out.txtortype...

View Article

Spring Boot Umlaute in Redirect URL

2024 and still problems with encoding UTF-8. Here's my problem reduced to a very simple project with tests (just two important classes, rest is boilerplate created with Spring...

View Article


How to decode a string from Instagram backup in Swift?

This is a part of my Instagram account backup[ {"media": [ {"title": "\u00d0\u0094\u00d0\u00be\u00d1\u0080\u00d0\u00be\u00d0\u00b3\u00d0\u00be\u00d0\u00b9...

View Article

Encoding issues on OpenAI predictions after fine-tuning

I'm following this OpenAI tutorial about fine-tuning.I already generated the dataset with the openai tool. The problem is that the outputs encoding (inference result) is mixing UTF-8 with non UTF-8...

View Article

Image may be NSFW.
Clik here to view.

Hindi text is not being displayed when copied from pdf to excel in ubuntu 16.04

I installed "sudo apt-get install ttf-indic-fonts" and excel could display hindi text copied from Google translate. But when tried copying hindi text from pdf and pasting in excel it got pasted...

View Article


VBA : import csv file with utf-8 encoding

I created a script in order to import csv file. The script works but I would like import this file with utf-8 encoding.Could someone help me with some of these problems?This is my script:Sub...

View Article


What is the regex to extract all the emojis from a string?

I have a String encoded in UTF-8. For example:That's a nice joke 😆😆😆😛I have to extract all the emojis present in the sentence. And the emoji could be anything.When this sentence is viewed in terminal...

View Article

UTF-8 output on Windows console

The following code shows unexpected behaviour on my machine (tested with Visual C++ 2008 SP1 on Windows XP and VS 2012 on Windows 7):#include <iostream>#include "Windows.h"int main() {...

View Article

Convert universal character name to UTF-8 in C

I need to convert universal character name (UCN) data from a database to UTF-8. Seems trivial, but I spent hours reading about unicode, UTF-8, wide strings, ... without any result.As example, the...

View Article

Image may be NSFW.
Clik here to view.

How to unmask a JavaFX PasswordField or properly mask a TextField?

In a UI of mine, I have a PasswordField like so (urm the one at the bottom!):I want a user to be able to check the checkbox you see in the picture and have all "secret" password characters displayed....

View Article


How to iterate over Unicode grapheme clusters in Rust?

I am learning Rust and I just have been surprised by the fact that Rust only is able to distinguish UTF-8 byte sequences, but not actual grapheme clusters (i.e. a diacritic is considered as a distinct...

View Article

perl script to check 2 byte unicode is not working

My perl script is not finding the unicode character in the name below.Helen Mon‘eaWhen i viewed the above name in UTF-8, it shows as x91#!/usr/bin/perluse warnings;## purpose: Identify line numbers...

View Article


PHP replacing special characters like à->a, è->e

I have php document signup.php which save the content from form (in form.php document) to MySQL base. The problem arises when I want to reformat the input content. I want do decode UTF-8 charachters...

View Article

How can I escape all unicode characters in a QString so that only ASCII is...

I'm searching for a safe method to escape all non-ASCII characters in a QString (and of course to un-escape them later) that will result in pure ASCII but yield the shortest possible string.What I...

View Article


Preserve UTF-8 BOM in Browser Downloads

I have a JAX-RS REST-Service that produces a CSV file and streams it back to the browser. Everything is set to UTF-8, so also the file I download via the browser is a valid UTF-8 File (without a BOM)...

View Article

Golang Bytes.Buffer Converting Unicode to Weird Characters [duplicate]

I have a program in Golang that does some string manipulations to text from a file. It reads in the file, does the manipulations and then tries to setup the text it displays in the terminal with a red...

View Article

Php email body decoding to plain

I'm tying extract some content of some equal emails with php but I can't.With that:$body = imap_body($imap_o, $email_n);I get:Pour = le r=E9cup=E9rer, il suffit de le t=E9l=E9charger, de le...

View Article
Browsing all 1041 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>