question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Character encoding error

See original GitHub issue

Running the demo app, I get the following error: The character encoding of the plain text document was not declared.

Ran the following to get this error:

npx degit antfu/vitesse vitesse-app
cd vitesse-app
pnpm i
pnpm dev

Image of error and view of app: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
CoreyVincentcommented, Oct 18, 2021

@userquin Downgraded vite (2.6.7) and windicss (1.4.9). I’m using Windows 10 (19043.1288) with WSL2 (Ubuntu 20.04.3 LTS)

1reaction
userquincommented, Oct 18, 2021

@CoreyVincent you also need to install axios as dependency.

I have downgraded vite 2.6.7 and windicss 1.4.9 and I get it working:

<script setup lang="ts">
import { useAxios } from '@vueuse/integrations/useAxios'
import { useUserStore } from '~/stores/user'

const user = useUserStore()
const name = ref(user.savedName)

const router = useRouter()
const { data } = useAxios('https://www.google.com')
const { t } = useI18n()

const go = () => {
  if (name.value)
    router.push(`/hi/${encodeURIComponent(name.value)}`)
}
</script>
<template>
...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Solving character encoding problems
Computers store text as a sequence of numbers where each character has a unique number according to an agreed upon "character encoding standard" ......
Read more >
508 Accessibility Character Encoding Error
Hi Community! I'm running the accessibility checker on documents and getting the above error. The culprit is always the graphic from our Mapping...
Read more >
Character encoding error - Developer Tools
In the developer tools, when viewing the response json content, there is a possibility that the character content cannot be displayed.
Read more >
UTF-8 Character Debug Tool
Unicode Windows 1252 Expected Actual UTF‑8 Bytes Unicode Windows 1252 Expect... U+20AC 0x80 € € %E2 %82 %AC U+00C0 0xC0 À 0x81 U+00C1 0xC1 Á U+201A...
Read more >
Resolving character encoding issues in your data feed.
In Google Merchant Center, you may see an error that says: Encoding problem in attribute: description - Some of the characters in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found