Giter VIP home page Giter VIP logo

Comments (7)

dayuoba avatar dayuoba commented on June 24, 2024

应该不是奇怪的字符的问题,文件读取的时候走的是Buffer
把你的测试代码贴到这里看看呢

from fibjs.

jerryxht avatar jerryxht commented on June 24, 2024

var fs=require("fs");
var text=fs.readFile("addr.txt");
console.log(text);
代码很简单,就这样,打印出来只有一半,但难道问题出在打印上了

from fibjs.

dayuoba avatar dayuoba commented on June 24, 2024

@jerryxht 有可能啊,设置一下encoding看看呢

from fibjs.

jerryxht avatar jerryxht commented on June 24, 2024

已经可以确认是console.log的问题,部分字符打印不出来,然后问题字符的后边的字符都打印不出来了

科 

8

科与8中间有一个空白字符和换行,打印到那个空白字符就会出问题

总的来说问题不是太致命,但还是希望能修正,不然调试的时候不好定位问题

from fibjs.

jerryxht avatar jerryxht commented on June 24, 2024

我弄到啥了,字体咋变大了

from fibjs.

yjhjstz avatar yjhjstz commented on June 24, 2024

二进制看看有没有结束符‘\0’ ? @jerryxht

from fibjs.

LuoZijun avatar LuoZijun commented on June 24, 2024

@jerryxht 应该是你 在文字开头 使用了 markdown 的 标题 符号 # 或者 使用了 HTML 标签 <h1>

from fibjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.