2012-09-03 16 views
7

चेतावनी: this के डुप्लिकेट के रूप में इसे जाने से पहले, कृपया समझें कि यह नहीं है। स्वीकार्य उत्तर वही है जो मैं कर रहा हूं, फिर भी मुझे निम्नलिखित समस्या का सामना करना पड़ रहा है। ग्राहक फ़ोल्डर मेंमेटा टैग पहले 1024 बाइट्स में नहीं

HTML फ़ाइल इस तरह दिखता है:

<head> 
    <meta charset="utf-8"/> 
    <title>blah-blah</title> 
    --- 

संदेश मैं फ़ायरबग कंसोल में हो रही है:

The character encoding declaration of the HTML document 
was not found when prescanning the first 1024 bytes of 
the file. When viewed in a differently-configured browser, 
this page will reload automatically. The encoding 
declaration needs to be moved to be within the first 
1024 bytes of the file. 

जब मैं एक दृश्य के स्रोत करते हैं, सिर और के बीच मेटा वर्णमाला तत्व, मैं लिंक स्टाइलशीट और स्क्रिप्ट टैग का एक पूरा समूह देखता हूं।

अगर मैं मेटा चारसेट निकालने के लिए, मैं फ़ायरबग कंसोल में इस मिल:

The character encoding of the HTML document was not 
declared. The document will render with garbled text 
in some browser configurations if the document 
contains characters from outside the US-ASCII range. 
The character encoding of the page must to be declared 
in the document or in the transfer protocol. 

मैं कैसे मेटा चारसेट टैग सिर के बाद सही प्रकट करने के लिए मिलता है?

उत्तर

6

मैं क्या संपादित /usr/lib/meteor/app/lib/app.html.in था, और मेटा चारसेट लाइन जोड़ सकते हैं ताकि फ़ाइल अब इस तरह दिखता है:

<!DOCTYPE html> 
<html> 
<head> 
<meta charset="utf-8"/> //**Added this line** 
{{#each stylesheets}} <link rel="stylesheet" href="{{this}}"> 
{{/each}} 
... 

और निश्चित रूप से मैं अपने html फ़ाइलें से मेटा चारसेट लाइन हटा दिया।

मुझे अभी लगता है, यह जाने का तरीका होगा और भविष्य में संशोधन में इसका समाधान किया जाएगा।

1

मुझे नवीनतम संस्करण का उपयोग करने के लिए मजबूर करने के लिए आईई में समस्या थी। मुझे

<meta http-equiv="x-ua-compatible" content="IE=edge"> 

सीधे टैग के पीछे जोड़ना पड़ा। और app.html.in अब और उपयोग नहीं किया जा रहा है।

तो मैं उपकरण/नवीनतम/उपकरण पर ऐसा किया/bundler.js

लाइन 783

'<head><meta http-equiv="x-ua-compatible" content="IE=edge">\n'); 

उसे HTML बॉयलरप्लेट में इसे जोड़ने के लिए मजबूर कर दिया।

संबंधित मुद्दे